I would do lock / unlock for the same purpose as file-maker :
file.out: file.in lockfile $@.lock file-maker < $< > $@ ; \ status=$$?; \ rm -f $@.lock ; \ exit $$status
Performs the file-maker and unlock steps in the same shell, maintaining the status of file-maker , so make will fail if file-maker fails.
Jack kelly
source share