]> rtime.felk.cvut.cz Git - omk/sssa.git/commitdiff
Fixed generation of global config.h.
authorMichal Sojka <sojkam1@fel.cvut.cz>
Tue, 27 Jun 2006 14:21:00 +0000 (14:21 +0000)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Tue, 27 Jun 2006 14:21:00 +0000 (14:21 +0000)
darcs-hash:20060627142150-f2ef6-9433c91c885a2a1b3a65a0338b341901288e034d.gz

snippets/config_h
snippets/linux

index c9f097c7bac5b336e2ad4652eed28261b0f7a4ce..bc7f507389291691816904c31f2bf704170c68e4 100644 (file)
@@ -42,11 +42,15 @@ $(foreach confh,$(config_include_HEADERS),$(eval $(call BUILD_CONFIG_H_template,
 _$(basename $(notdir $(confh)))_H \
 )))
 
-define clean_config_h
+# Add some hooks to standard passes
+include-pass-local: $(addprefix $(USER_INCLUDE_DIR)/,$(config_include_HEADERS))
+
+clean-local: clean-local-config-h
+
+clean-local-config-h:
        @$(foreach confh,$(addprefix $(USER_INCLUDE_DIR)/,$(config_include_HEADERS)),\
            if [ -e $(confh) ] ; then touch -t 200001010101 $(confh) ; fi ; \
        )
-endef
 
 
 # Local Variables:
index ba2aa1151f09fe774defb86b949f3dc4a752d002..6f209a1e8256382c596b327ad417cf64d703d5c9 100644 (file)
@@ -691,7 +691,6 @@ clean-local: clean-custom
        @if [ -e $(KERN_LIB_DIR)/kernel.mk ] ; then \
            touch -t 200001010101 $(KERN_LIB_DIR)/kernel.mk ; \
        fi
-       $(clean_config_h)
 
 default: $(check-dir) include-pass library-pass binary-pass utils-pass kernel-lib-pass kernel-pass