summaryrefslogtreecommitdiff
path: root/lib/local.mk
diff options
context:
space:
mode:
authorZack Weinberg <zackw@panix.com>2020-09-11 09:37:50 -0400
committerZack Weinberg <zackw@panix.com>2020-09-11 09:37:50 -0400
commitdda80c75274a57dbbb71b16ad51cc0716741da4a (patch)
tree78b5ed3e0da4bb8492e002cc830c95ebefb2d0d8 /lib/local.mk
parentb560f0a657be0ba69417d26589ffd93a26f62573 (diff)
downloadautoconf-zack/channeldefs-sync.tar.gz
attempt to sync ChannelDefs.pm *and* Config.pm from automakezack/channeldefs-sync
needs changes to how wrapper.as works, postponed
Diffstat (limited to 'lib/local.mk')
-rw-r--r--lib/local.mk21
1 files changed, 17 insertions, 4 deletions
diff --git a/lib/local.mk b/lib/local.mk
index 5cc9d44a..b7d24bbf 100644
--- a/lib/local.mk
+++ b/lib/local.mk
@@ -41,7 +41,22 @@ dist_perllib_DATA = \
lib/Autom4te/Request.pm \
lib/Autom4te/XFile.pm
-TAGS_FILES += $(dist_perllib_DATA)
+nodist_perllib_DATA = \
+ lib/Autom4te/Config.pm
+
+# Config.pm needs to depend on Makefile so that it is rebuilt when the
+# prefix, etc. changes. Unfortunately, suffix rules cannot have
+# additional dependencies, so we have to use an explicit rule.
+EXTRA_DIST += lib/Autom4te/Config.in
+CLEANFILES += $(nodist_perllib_DATA)
+lib/Autom4te/Config.pm: $(srcdir)/lib/Autom4te/Config.in Makefile
+ rm -f $@ $@-t
+ $(MKDIR_P) $(@D)
+ $(edit) $(srcdir)/lib/Autom4te/Config.in > $@-t
+ chmod a-w $@-t
+ mv -f $@-t $@
+
+TAGS_FILES += $(dist_perllib_DATA) $(nodist_perllib_DATA)
# Note: ETAGS_ARGS should have already been extended to handle perl files.
## ------------------------------------------ ##
@@ -51,9 +66,7 @@ TAGS_FILES += $(dist_perllib_DATA)
nodist_pkgdata_DATA = lib/autom4te.cfg
EXTRA_DIST += lib/autom4te.in
-# All the files below depend on Makefile so that they are rebuilt
-# when the prefix, etc. changes. Unfortunately, suffix rules
-# cannot have additional dependencies, so we have to use explicit rules.
+# lib/autom4te.cfg also needs to depend on the Makefile; see above
CLEANFILES += lib/autom4te.cfg
lib/autom4te.cfg: $(srcdir)/lib/autom4te.in Makefile
rm -f $@ $@-t