From 35d6c97dd733dd258be5ba7e17ec6793a4be79fb Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Sun, 29 Jan 2017 19:42:42 +0000 Subject: [PATCH] Fix Makefile warning about circular empty.h dependency. 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 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mkfiles.pl b/mkfiles.pl index 4a2b3b4d..1570f256 100755 --- a/mkfiles.pl +++ b/mkfiles.pl @@ -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", "="); -- 2.45.1