summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2021-04-11 06:12:32 +0000
committermidipix <writeonce@midipix.org>2021-04-11 06:22:47 +0000
commit116f061dfeed989b5d25299c1acdc609679428d9 (patch)
tree3444aadf2462b7257437593df4731e7ec2252a32
parentdb86546cf48ddfe7e53cdc175548331a30378bd4 (diff)
downloadbautomake-116f061dfeed989b5d25299c1acdc609679428d9.tar.bz2
bautomake-116f061dfeed989b5d25299c1acdc609679428d9.tar.xz
project: posix make support: refactored source generation rules.
-rw-r--r--project/srcgen.mk37
1 files changed, 18 insertions, 19 deletions
diff --git a/project/srcgen.mk b/project/srcgen.mk
index 3f73ec5..dd489ff 100644
--- a/project/srcgen.mk
+++ b/project/srcgen.mk
@@ -31,7 +31,6 @@ BIN_SUBST_RULES = \
-e 's!@datadir@!$(DATADIR)!g'
SRCINFO_SUBST_RULES = \
- -e 's!@program@!$(PROGRAM)!g' \
-e 's!@srcsite@!$(SRCSITE)!g' \
-e 's!@package@!$(PACKAGE)!g' \
-e 's,@pgprkey@,$(PGPRKEY),g' \
@@ -52,34 +51,34 @@ MAN_GEN_SRCS = man/aclocal.1 man/aclocal-$(AUTOMAKE_VER).1 \
ALL_GEN_SRCS = $(M4_GEN_SRCS) $(BIN_GEN_SRCS) $(LIB_GEN_SRCS) $(MAN_GEN_SRCS)
m4/amversion.m4: $(SOURCE_DIR)/m4/amversion.in tree.tag
- sed $(M4_SUBST_RULES) $< > $@
+ sed $(M4_SUBST_RULES) $(SOURCE_DIR)/m4/amversion.in > $@
-bin/aclocal-$(AUTOMAKE_VER): PROGRAM=aclocal
bin/aclocal-$(AUTOMAKE_VER): $(SOURCE_DIR)/bin/aclocal.in tree.tag
sed -e '/$$PACKAGE) $$VERSION/,$$d' $(BIN_SUBST_RULES) \
- $< > $@.tmp \
- && sed $(SRCINFO_SUBST_RULES) \
- $(SRCINFO) >> $@.tmp \
- && sed -e '/$$PACKAGE) $$VERSION/p' \
- -e '1,/$$PACKAGE) $$VERSION/d' $(BIN_SUBST_RULES) \
- $< >> $@.tmp \
- && chmod +x $@.tmp \
+ $(SOURCE_DIR)/bin/aclocal.in > $@.tmp \
+ && sed -e 's!@program@!aclocal!g' \
+ $(SRCINFO_SUBST_RULES) \
+ $(SRCINFO) >> $@.tmp \
+ && sed -e '/$$PACKAGE) $$VERSION/p' \
+ -e '1,/$$PACKAGE) $$VERSION/d' $(BIN_SUBST_RULES) \
+ $(SOURCE_DIR)/bin/aclocal.in >> $@.tmp \
+ && chmod +x $@.tmp \
&& mv $@.tmp $@
-bin/automake-$(AUTOMAKE_VER): PROGRAM=automake
bin/automake-$(AUTOMAKE_VER): $(SOURCE_DIR)/bin/automake.in tree.tag
sed -e '/$$PACKAGE) $$VERSION/,$$d' $(BIN_SUBST_RULES) \
- $< > $@.tmp \
- && sed $(SRCINFO_SUBST_RULES) \
- $(SRCINFO) >> $@.tmp \
- && sed -e '/$$PACKAGE) $$VERSION/p' \
- -e '1,/$$PACKAGE) $$VERSION/d' $(BIN_SUBST_RULES) \
- $< >> $@.tmp \
- && chmod +x $@.tmp \
+ $(SOURCE_DIR)/bin/automake.in > $@.tmp \
+ && sed -e 's!@program@!automake!g' \
+ $(SRCINFO_SUBST_RULES) \
+ $(SRCINFO) >> $@.tmp \
+ && sed -e '/$$PACKAGE) $$VERSION/p' \
+ -e '1,/$$PACKAGE) $$VERSION/d' $(BIN_SUBST_RULES) \
+ $(SOURCE_DIR)/bin/automake.in >> $@.tmp \
+ && chmod +x $@.tmp \
&& mv $@.tmp $@
lib/Automake/Config.pm: $(SOURCE_DIR)/lib/Automake/Config.in tree.tag
- sed $(LIB_SUBST_RULES) $< > $@
+ sed $(LIB_SUBST_RULES) $(SOURCE_DIR)/lib/Automake/Config.in > $@
man/aclocal.1: tree.tag
printf '.so man1/aclocal-%s.1\n' $(AUTOMAKE_VER) > $@