]> asedeno.scripts.mit.edu Git - PuTTY.git/commitdiff
Fix Makefile warning about circular empty.h dependency.
authorSimon Tatham <anakin@pobox.com>
Sun, 29 Jan 2017 19:42:42 +0000 (19:42 +0000)
committerSimon Tatham <anakin@pobox.com>
Sun, 29 Jan 2017 19:44:17 +0000 (19:44 +0000)
In commit be586d53b I made empty.h depend on $(allsources), which
unfortunately was defined so as to include empty.h. This was harmless,
because make just ignored the circular dependency, but annoying,
because it constantly mentioned that it was ignoring it.

mkfiles.pl

index 4a2b3b4dcca8182a8091e884310541315349f871..1570f2564b1af2ce225849dcc5bf206566a43368 100755 (executable)
@@ -1517,7 +1517,8 @@ if (defined $makefiles{'am'}) {
     # auto-generated parts of this makefile, but Recipe might like to
     # have it available as a variable so that mandatory-rebuild things
     # (version.o) can conveniently be made to depend on it.
-    @sources = ("allsources", "=", sort keys %allsourcefiles);
+    @sources = ("allsources", "=",
+                sort grep {$_ ne "empty.h"} keys %allsourcefiles);
     print &splitline(join " ", @sources), "\n\n";
 
     @cliprogs = ("bin_PROGRAMS", "=");