commit:     b8bf820c6d3245e858988c2d7db487252aba5248
Author:     cgzones <cgzones <AT> googlemail <DOT> com>
AuthorDate: Sun Dec  4 13:18:21 2016 +0000
Commit:     Jason Zaman <perfinion <AT> gentoo <DOT> org>
CommitDate: Tue Dec  6 12:39:33 2016 +0000
URL:        
https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=b8bf820c

using intermediate target instead of splitting up conf files generation

 Makefile | 17 ++++++++---------
 1 file changed, 8 insertions(+), 9 deletions(-)

diff --git a/Makefile b/Makefile
index 9295b18..56cc0b6 100644
--- a/Makefile
+++ b/Makefile
@@ -2,7 +2,7 @@
 # Makefile for the security policy.
 #
 # Targets:
-# 
+#
 # install       - compile and install the policy configuration, and context 
files.
 # load          - compile, install, and load the policy configuration.
 # reload        - compile, install, and load/reload the policy configuration.
@@ -236,7 +236,7 @@ ifeq ($(DISTRO),debian)
 endif
 
 ifeq ($(DISTRO),gentoo)
-       CTAGS := exuberant-ctags        
+       CTAGS := exuberant-ctags
 endif
 
 CTAGS ?= ctags
@@ -393,13 +393,12 @@ $(net_contexts): $(moddir)/kernel/corenetwork.te.in
 #
 conf: $(mod_conf) $(booleans) generate
 
-$(booleans): $(polxml)
-       @echo "Updating $(booleans)"
-       $(verbose) $(gendoc) -b $(booleans) -x $(polxml)
+$(booleans) $(mod_conf): conf.intermediate
 
-$(mod_conf): $(polxml)
-       @echo "Updating $(mod_conf)"
-       $(verbose) $(gendoc) -m $(mod_conf) -x $(polxml)
+.INTERMEDIATE: conf.intermediate
+conf.intermediate: $(polxml)
+       @echo "Updating $(booleans) and $(mod_conf)"
+       $(verbose) $(gendoc) -b $(booleans) -m $(mod_conf) -x $(polxml)
 
 ########################################
 #
@@ -418,7 +417,7 @@ $(layerxml): %.xml: $(all_metaxml) $(filter $(addprefix 
$(moddir)/, $(notdir $*)
        $(verbose) for i in $(basename $(filter $(addprefix $(moddir)/, 
$(notdir $*))%, $(detected_mods))); do $(genxml) -w -m $$i >> $@; done
 ifdef LOCAL_ROOT
        $(verbose) for i in $(basename $(filter $(addprefix $(local_moddir)/, 
$(notdir $*))%, $(detected_mods))); do $(genxml) -w -m $$i >> $@; done
-endif  
+endif
 
 $(tunxml): $(globaltun)
        $(verbose) $(genxml) -w -t $< > $@

Reply via email to