Hello, the following Makefile:


.DELETE_ON_ERROR: $(UPDATE_TARGET) $(EXE_TARGET)

...

$(UPDATE_TARGET): $(SRC)
        $(PYTHON) install/mk_update.py -w
#       cd install; $(PYTHON) mk_update.py -w; cd ..

...


The out-commented version with multi-command due to cd's doesn't lead to a deletion of the broken target upon execution error in the py script. While the action version (cd's done inside the script now), will lead to deletion as wanted when error.

Why? what to do?

(seen on Windows; GNU make 3.81/MingW)


Robert


_______________________________________________
Help-make mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/help-make

Reply via email to