1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
.PHONY: all all: incdec incdec: incdec.m4.bash incdec.pl m4 --define="INCLUDE_INCDEC_PL=include(\`incdec.pl')dnl" $< > $@ incdec.pl: incdec.m4.pl incdec.pm sed -n '/sub incdec {/,/^}/p' incdec.pm > incdec.sub.pl m4 --define="INCLUDE_INCDEC_SUBROUTINE=include(\`incdec.sub.pl')dnl" $< > $@ rm incdec.sub.pl .PHONY: test test: prove -v