aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2021-08-23 23:19:58 +0200
committerTeddy Wing2021-08-23 23:19:58 +0200
commitb5b0dc44953bf852e45f3cd72ac0de8d255e596c (patch)
tree1a6d907222619449284fd4d7d61f89b2a2254f09
parent732c469b3b329eeddcf0d72575c5d7bff1f9e278 (diff)
downloadreadline-incdec-b5b0dc44953bf852e45f3cd72ac0de8d255e596c.tar.bz2
Makefile: Reorganise targets
Put build targets above the test target.
-rw-r--r--Makefile14
1 files 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