summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2020-11-03 13:46:57 -0500
committerJakob Kaivo <jkk@ung.org>2020-11-03 13:46:57 -0500
commit02f687dfa6dad97fea7bbbb0846d36d8f83bdcaa (patch)
treeaa1ebb76ab5098bbe03a01528afef76476a5f35f /Makefile
parenta71c03f902bce904f68b506b72b0a8058b35c58d (diff)
add preamble
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 4c0e7af..01eb430 100644
--- a/Makefile
+++ b/Makefile
@@ -1,8 +1,11 @@
.POSIX:
OUTPUTS=text.m4 html.m4
-m4n: m4n.sh add_output.sh $(OUTPUTS)
+COMMON=pre.m4
+
+m4n: m4n.sh add_output.sh $(OUTPUTS) pre.m4
printf '#!/bin/sh\nset -e\n\n' > $@
+ for m4 in $(COMMON); do /bin/sh ./add_common.sh $$m4; done >> $@
for m4 in $(OUTPUTS); do /bin/sh ./add_output.sh $$m4; done >> $@
cat m4n.sh >> $@
chmod +x $@