GNUmakefile \
maint.mk \
syntax-checks.mk \
- HACKING
+ HACKING \
+ NG-NEWS \
+ $(gitlog_to_changelog_fixes)
- ## Make versioned links. We only run the transform on the root name;
- ## then we make a versioned link with the transformed base name. This
- ## seemed like the most reasonable approach.
+ # Make versioned links. We only run the transform on the root name;
+ # then we make a versioned link with the transformed base name. This
+ # seemed like the most reasonable approach.
install-exec-hook:
@$(POST_INSTALL)
@for p in $(bin_SCRIPTS); do \
rm -f "$(DESTDIR)$(bindir)/$$fv"; \
done
- ## These files depend on Makefile so they are rebuilt if $(VERSION),
- ## $(datadir) or other do_subst'ituted variables change.
+ # These files depend on Makefile so they are rebuilt if $(VERSION),
+ # $(datadir) or other do_subst'ituted variables change.
-automake: automake.in
-aclocal: aclocal.in
-automake aclocal: Makefile
+automake aclocal: %: %.in Makefile
$(AM_V_at)rm -f $@ $@-t
- $(AM_V_GEN)in=$@.in; $(do_subst) <$(srcdir)/$@.in >$@-t
+ $(AM_V_GEN)$(do_subst)
## We can't use '$(generated_file_finalize)' here, because currently
## Automake contains occurrences of unexpanded @substitutions@ in
## comments, and that is perfectly legit.
PATH='$(abs_builddir)/t/ax'$(PATH_SEPARATOR)$$PATH; \
export PATH;
-# Hand-written tests.
-
-include $(srcdir)/t/list-of-tests.mk
-
-TESTS += $(handwritten_TESTS)
-EXTRA_DIST += $(handwritten_TESTS)
-
-# Automatically-generated tests wrapping hand-written ones.
-# Also, automatically-computed dependencies for tests.
-
-include $(srcdir)/t/testsuite-part.am
-
-TESTS += $(generated_TESTS)
-EXTRA_DIST += $(generated_TESTS)
+# Automatically-computed dependencies for tests.
+include $(srcdir)/testsuite-autodeps.am
- ## The dependencies declared here are not truly complete, but such
- ## completeness would cause more issues than it would solve. See
- ## automake bug#11347.
-$(srcdir)/t/testsuite-part.am:
- $(AM_V_at)rm -f t/testsuite-part.tmp $@
- $(AM_V_GEN)$(PERL) $(srcdir)/gen-testsuite-part \
- --srcdir $(srcdir) > t/testsuite-part.tmp
- $(AM_V_at)chmod a-w t/testsuite-part.tmp
- $(AM_V_at)mv -f t/testsuite-part.tmp $@
-EXTRA_DIST += gen-testsuite-part
-
-# The dependecies declared here are not truly complete, but such
++# The dependencies declared here are not truly complete, but such
+ # completeness would cause more issues than it would solve. See
+ # automake bug#11347.
-$(generated_TESTS): $(srcdir)/gen-testsuite-part
-$(srcdir)/t/testsuite-part.am: $(srcdir)/gen-testsuite-part Makefile.am
-
-# Hand-written tests for stuff in 'contrib/'.
-include $(srcdir)/contrib/t/local.am
-TESTS += $(contrib_TESTS)
-EXTRA_DIST += $(contrib_TESTS)
+$(srcdir)/testsuite-autodeps.am: $(srcdir)/gen-testsuite-part
+ $(AM_V_at)rm -f $(@F)-t $@
+ $(AM_V_GEN)$(PERL) $< --srcdir $(srcdir) > $(@F)-t
+ $(AM_V_at)chmod a-w $(@F)-t && mv -f $(@F)-t $@
+EXTRA_DIST += gen-testsuite-part
# Static dependencies valid for each test case (also further
# extended later). Note that use 'noinst_' rather than 'check_'