2 include $(TOP)/config/make.cfg
5 INCLUDES := $(wildcard $(foreach d,$(INCSUBDIRS),$(d)/*.[ch]))
6 DEST_INCLUDES := $(foreach f,$(INCLUDES),$(AROS_INCLUDES)/$(f))
7 GEN_INCLUDES := $(foreach f,$(INCLUDES),$(GENINCDIR)/$(f))
9 #MM includes-copy : setup-includes
10 includes-copy : $(DEST_INCLUDES) $(GEN_INCLUDES)
13 $(AROS_INCLUDES)/%.h : %.h
16 $(AROS_INCLUDES)/%.c : %.c
19 $(GENINCDIR)/%.h : %.h
22 $(GENINCDIR)/%.c : %.c
27 @$(FOR) dir in $(AROS_INCLUDES) \
28 $(foreach f,$(INCSUBDIRS),$(AROS_INCLUDES)/$(f)) \
30 $(foreach f,$(INCSUBDIRS),$(GENINCDIR)/$(f)) \
32 $(IF) $(TEST) ! -d "$$dir" ; then $(MKDIR) "$$dir" ; else true ; fi ;\
37 -$(RM) $(AROS_INCLUDES) $(GENINCDIR)