document config_foreach, close #2162
[openwrt.git] / tools / Makefile
index 2b0143e..492c027 100644 (file)
@@ -21,13 +21,13 @@ $(STAGING_DIR)/include-host/.done:
        @cp $(1)/include/*.h $$$$(dirname $$@)/
        @touch $$@
 $(curdir)//prepare = $(STAGING_DIR)/include-host/.done
+$(curdir)//compile = $(STAGING_DIR)/include-host/.done
 endef
 $(eval $(call copy_include,$(curdir)))
 
 # prerequisites for the individual targets
-$(curdir)/ := .config
-$(curdir)//compile = $(1)/prepare
+$(curdir)/ := .config prereq
 $(curdir)//install = $(1)/compile
 
-$(eval $(call stampfile,$(curdir),tools))
+$(eval $(call stampfile,$(curdir),tools,install))
 $(eval $(call subdir,$(curdir)))