1 CFG_SRCDIR = ../src
3 ifneq (,$(findstring :,$(WINDIR)$(windir)$(COMSPEC)$(comspec)))
4 # if Windows, use copy to touch file dates
5 TOUCH = copy /b $(subst /,\,$@)+,, $(subst /,\,$@)
6 else
7 TOUCH = touch $@
8 endif
10 # include Config generated top-level makefile
11 -include $(CFG_SRCDIR)/makefile.libs
13 ifneq (clean,$(MAKECMDGOALS))
14 # ensure this file is reloaded when .cfg files change but after config runs
15 $(CFG_SRCDIR)/makefile.libs: $(GEN_OPTS) $(CFG_SRCS)
16 -@$(if $(wildcard $@),$(TOUCH),:)
17 endif
19 #add generated makefile to list of files to delete during a clean
20 #GEN_MISC_FILES__QTD += "$(CFG_SRCDIR)/makefile.libs"
22 #add generated source dir to list of directories to delete during a clean
23 #GEN_MISC_DIRS__QTD += "$(CFG_SRCDIR)"