This contains a few replacements that didn't make it into #17:
Use $@ and $< in the rules (particularly suffix rules), except don't use $< outside of pattern/suffix rules since it isn't portable (a GNU Make extension for the first prerequisite).
Replace cd dir; cmd with (cd dir && cmd).
Replace make with $(MAKE).
Three other small changes that help when using these automatic variables:
I've split the all-scripts target in contrib/jobling/Makefile into rules to build each of its constituent files, using $@ as appropriate. Removes the need to touch all-scripts to prevent unnecessarily rebuilding these.
I've moved all chmod +x commands to where the target file is created so these can also use $@.
I've removed the .nw.o suffix rule from src/c/Makefile, instead relying on the .nw.c rule followed by the usually built-in .c.o rule.
This contains a few replacements that didn't make it into #17:
$@
and$<
in the rules (particularly suffix rules), except don't use$<
outside of pattern/suffix rules since it isn't portable (a GNU Make extension for the first prerequisite).cd dir; cmd
with(cd dir && cmd)
.make
with$(MAKE)
.Three other small changes that help when using these automatic variables:
$@
as appropriate. Removes the need totouch all-scripts
to prevent unnecessarily rebuilding these.chmod +x
commands to where the target file is created so these can also use$@
..nw.o
suffix rule from src/c/Makefile, instead relying on the.nw.c
rule followed by the usually built-in.c.o
rule.