build system: avoid warning about missing .xcompile
That file will be generated, but not before make managed
to complain about it.
So let's just generate it if missing - it won't hurt the
dependency tracking some lines later which is looking at
Signed-off-by: Patrick Georgi <firstname.lastname@example.org>
Tested-by: build bot (Jenkins)
Reviewed-by: Edward O'Callaghan <email@example.com>
diff --git a/Makefile b/Makefile
index fad8103..a55ad67 100644
@@ -30,6 +30,10 @@
## SUCH DAMAGE.
+# in addition to the dependency below, create the file if it doesn't exist
+# to silence stupid warnings about a file that would be generated anyway.
+$(if $(wildcard .xcompile),,$(eval $(shell util/xcompile/xcompile $(XGCCPATH) > .xcompile)))
A=`mktemp $@.XXXXXX`; $< $(XGCCPATH) > $$A && mv $$A $@ 2> /dev/null