summaryrefslogtreecommitdiff
path: root/project/srcgen.mk
diff options
context:
space:
mode:
Diffstat (limited to 'project/srcgen.mk')
-rw-r--r--project/srcgen.mk12
1 files changed, 11 insertions, 1 deletions
diff --git a/project/srcgen.mk b/project/srcgen.mk
index 26e8760..7008b67 100644
--- a/project/srcgen.mk
+++ b/project/srcgen.mk
@@ -30,7 +30,14 @@ BIN_SUBST_RULES = \
-e 's!@am_AUTOM4TE@!$(AM_AUTOM4TE)!g' \
-e 's!@datadir@!$(DATADIR)!g'
-ALL_GEN_SRCS = $(M4_GEN_SRCS) $(BIN_GEN_SRCS)
+LIB_GEN_SRCS = lib/Automake/Config.pm
+LIB_CONFIGURE_INPUT = Generated via variable substitution from $(subst $(SOURCE_DIR)/lib/Automake/,,$<).
+LIB_SUBST_RULES = \
+ -e 's!@configure_input@!$(LIB_CONFIGURE_INPUT)!g' \
+ $(BIN_SUBST_RULES)
+
+
+ALL_GEN_SRCS = $(M4_GEN_SRCS) $(BIN_GEN_SRCS) $(LIB_GEN_SRCS)
m4/amversion.m4: $(SOURCE_DIR)/m4/amversion.in tree.tag
sed $(M4_SUBST_RULES) $< > $@
@@ -41,6 +48,9 @@ bin/aclocal-$(AUTOMAKE_VER): $(SOURCE_DIR)/bin/aclocal.in tree.tag
bin/automake-$(AUTOMAKE_VER): $(SOURCE_DIR)/bin/automake.in tree.tag
sed $(BIN_SUBST_RULES) $< > $@ && chmod +x $@
+lib/Automake/Config.pm: $(SOURCE_DIR)/lib/Automake/Config.in tree.tag
+ sed $(LIB_SUBST_RULES) $< > $@
+
srcgen: $(ALL_GEN_SRCS)
srcgen-clean: