]> git.draconx.ca Git - dxcommon.git/blobdiff - snippet/autotest.mk
Fix autotest snippet with --disable-dependency-tracking.
[dxcommon.git] / snippet / autotest.mk
index 10acd7134d8548ef971b8d124f11dfc5ed6f1147..5b3764bbaa82b2624c276c6293669e6a6c8cea5d 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright © 2015,2019-2021 Nick Bowler
+# Copyright © 2015,2019-2022 Nick Bowler
 #
 # Automake fragment to hook up a basic Autotest test suite into the
 # build.  It is expected that a testsuite.at file exists in $(srcdir).
@@ -66,8 +66,10 @@ endif
        $(AM_V_GEN) $(DX_AUTOTEST) -p m4_include -o $@.tmp testsuite.at
        $(AM_V_at) $(DX_AUTOTEST) -t m4_include:'$$1' -o $@.deps.tmp \
          testsuite.at
+if AMDEP
        $(AM_V_at) exec 3<$@.deps.tmp 4>$(DEPDIR)/$(@F).P; \
          while read f <&3; do printf '$@: %s\n%s:\n' "$$f" "$$f" >&4; done
+endif
        $(AM_V_at) mv -f $@.deps.tmp $@.deps
        $(AM_V_at) mv -f $@.tmp $@
 testsuite.deps: testsuite