Add default to generate prerequisistes for any rule
[pspp] / Makefile.am
index 565e730171d96499cd7a0e493ca05bbde695a0d7..ae48d1ac68a208881e616fa813db8ce0ccd9edfa 100644 (file)
@@ -21,6 +21,7 @@ AUTOMAKE_OPTIONS = std-options check-news 1.10.1 subdir-objects
 SUBDIRS = gl po
 DISTCLEANFILES = ./po/stamp-po xconfigure
 BUILT_SOURCES =
+built-sources: $(BUILT_SOURCES)
 
 AM_CPPFLAGS = \
        -I$(top_srcdir)/gl \
@@ -69,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:
@@ -159,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