]> git.tuebingen.mpg.de Git - paraslash.git/commitdiff
Speed up dep target.
authorAndre Noll <maan@systemlinux.org>
Mon, 31 Dec 2012 00:10:50 +0000 (00:10 +0000)
committerAndre Noll <maan@systemlinux.org>
Mon, 31 Dec 2012 00:10:50 +0000 (00:10 +0000)
By default "make" removes intermediate files during the build. However,
some of the files generated by gengetopt are needed again later for
a different target.

This patch declares these generated files as "precious", so they
will no longer be removed. On one system the build time went down
from 30s to 25s due to this one-liner.

m4/gengetopt/makefile

index 138ac30b909f4b95bb0d2d50921f9930e4493840..05be1379c4f665314e402849b1ecefba680dfa74 100644 (file)
@@ -7,6 +7,8 @@ define ggo_opts
        --set-package="para_$(*F)"
 endef
 
        --set-package="para_$(*F)"
 endef
 
+.PRECIOUS: $(cmdline_dir)/%.cmdline.c $(cmdline_dir)/%.cmdline.h $(ggo_dir)/%.ggo
+
 $(cmdline_dir)/%.cmdline.h $(cmdline_dir)/%.cmdline.c: $(ggo_dir)/%.ggo | $(cmdline_dir)
        @[ -z "$(Q)" ] || echo 'GGO $<'
        $(Q) $(GENGETOPT) $(ggo_opts) < $<
 $(cmdline_dir)/%.cmdline.h $(cmdline_dir)/%.cmdline.c: $(ggo_dir)/%.ggo | $(cmdline_dir)
        @[ -z "$(Q)" ] || echo 'GGO $<'
        $(Q) $(GENGETOPT) $(ggo_opts) < $<