From b5b0dc44953bf852e45f3cd72ac0de8d255e596c Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Mon, 23 Aug 2021 23:19:58 +0200 Subject: Makefile: Reorganise targets Put build targets above the test target. --- Makefile | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index f23d724..2f88a43 100644 --- a/Makefile +++ b/Makefile @@ -1,12 +1,16 @@ -.PHONY: test -test: - prove -v +.PHONY: all +all: incdec +incdec: incdec.m4.bash incdec.pl + m4 $< --define="INCLUDE_INCDEC_PL=include(\`incdec.pl')dnl" > $@ + incdec.pl: incdec.pl.m4 incdec.pm sed -n '/sub incdec {/,/^}/p' incdec.pm > incdec.sub.pl m4 $< > $@ rm incdec.sub.pl -incdec: incdec.m4.bash incdec.pl - m4 $< --define="INCLUDE_INCDEC_PL=include(\`incdec.pl')dnl" > $@ + +.PHONY: test +test: + prove -v -- cgit v1.2.3