From: Martin Kletzander Date: Mon, 30 Nov 2015 09:52:43 +0000 (+0100) Subject: build: Create needed folders without dependency tracking X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=97c9ddefa13824b3f68bd4dd6d1456a4eb507f57;p=people%2Fliuw%2Flibxenctrl-split%2Flibvirt.git build: Create needed folders without dependency tracking The parameter --disable-dependency-tracking is supposed to speed up one-time build due to the fact that it disables some dependency extractors that, apparently, take longer time to execute. That is a problem for code that is generated into builddir (especially some specific subdirectory) because the directory it should be installed to does not exists in VPATH and without the dependency tracking is not created. Generating such file hence fails with -ENOENT. In order to keep generating files into builddir instead of srcdir, we must create the directory ourselves. This should finally fix the problem that is being fixed multiple times since its introduction in commit a9fe62037214 and let us continue with cleaning those parts of Makefiles that depend on generating files into the srcdir rather than builddir as it should be. Signed-off-by: Martin Kletzander --- diff --git a/src/Makefile.am b/src/Makefile.am index bcbee9de1..93b9c6666 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -181,6 +181,7 @@ MAINTAINERCLEANFILES += util/virkeymaps.h util/virkeymaps.h: $(srcdir)/util/keymaps.csv \ $(srcdir)/util/virkeycode-mapgen.py + $(MKDIR_P) util/ $(AM_V_GEN)$(PYTHON) $(srcdir)/util/virkeycode-mapgen.py \ <$(srcdir)/util/keymaps.csv >util/virkeymaps.h