From 02f687dfa6dad97fea7bbbb0846d36d8f83bdcaa Mon Sep 17 00:00:00 2001 From: Jakob Kaivo Date: Tue, 3 Nov 2020 13:46:57 -0500 Subject: add preamble --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'Makefile') 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 $@ -- cgit v1.2.1