]> git.ipfire.org Git - thirdparty/make.git/commitdiff
* mainMakefile: Check that INSTALL exists in the dist file
authorPaul Smith <psmith@gnu.org>
Sun, 3 May 2020 14:21:39 +0000 (10:21 -0400)
committerPaul Smith <psmith@gnu.org>
Sun, 3 May 2020 18:23:40 +0000 (14:23 -0400)
For some reason the INSTALL file symlinked to gnulib was omitted from
the 4.3 release package: I can't reproduce this but check for it.

maintMakefile

index f72f89cec8af6a3669a70b81dfc00862c85337c8..5b30c257b6149addda6cd401abe2e908aee125eb 100644 (file)
@@ -227,6 +227,26 @@ get-doc/make-stds.texi get-doc/fdl.texi:
          && $(move_if_change)
 
 
+# ---------------------------- #
+# Extra configuration checks.  #
+# ---------------------------- #
+
+# When I released 4.3 somehow the INSTALL file was missing.
+# When I tried to build it again, it was there.  I have no idea what happened
+# but add a new check to be sure it doesn't happen again.
+mk_dist_files = INSTALL
+
+dist: mk-distcheck
+
+.PHONY: mk-distcheck
+mk-distcheck: distdir
+       @echo "Checking for extra installed files..."
+       for fn in $(mk_dist_files); do \
+           test -f '$(distdir)'/"$$fn" \
+               || { echo "Missing dist file: $$fn"; exit 1; }; \
+       done; true
+
+
 # ---------------------------------- #
 # Alternative configuration checks.  #
 # ---------------------------------- #