Add default to generate prerequisistes for any rule
authorJohn Darrington <john@darrington.wattle.id.au>
Sat, 17 Oct 2020 15:48:03 +0000 (17:48 +0200)
committerJohn Darrington <john@darrington.wattle.id.au>
Sat, 17 Oct 2020 15:48:03 +0000 (17:48 +0200)
Makefile.am

index 15a94b424b7d19b2d138a502828e221322022077..ae48d1ac68a208881e616fa813db8ce0ccd9edfa 100644 (file)
@@ -70,8 +70,6 @@ LDADD = gl/libgl.la
 gl/libgl.la: config.h
        $(MAKE) -C gl
 
-dist: gl/libgl.la
-
 # This ensures that files added to EXTRA_DIST are always distributed,
 # even if they are inside an Automake if...endif conditional block that is
 # disabled by some particular "configure" run.  For more information, see:
@@ -160,4 +158,8 @@ distfiles: Makefile
              -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t" \
          | LC_ALL=C sort -u > $@
 CLEANFILES += distfiles gitfiles missing-distfiles
-PHONY += dist-hook-git
+PHONY += dist-hook-git dummy-prerequisistes
+
+-include dummy-prerequisistes
+
+dummy-prerequisistes: $(BUILT_SOURCES) gl/libgl.la