run/.tree-stamp: $(o)/config.mk
$(M)Creating runtree
- $(Q)mkdir -p run $(addprefix run/, cf $(EXTRA_RUNDIRS) $(INSTALL_RUNDIRS))
+ $(Q)mkdir -p run $(addprefix run/, $(CONFIG_DIR) $(EXTRA_RUNDIRS) $(INSTALL_RUNDIRS))
$(Q)touch run/.tree-stamp
# Miscellaneous targets
programs: $(PROGS)
datafiles: $(DATAFILES)
tests: $(TESTS)
-configs: $(addprefix run/cf/,$(CONFIGS))
+configs: $(addprefix run/$(CONFIG_DIR)/,$(CONFIGS))
tags:
etags `find . -name "*.[ch]"`
# Rules for configuration files
-run/cf/%: $(s)/cf/% $(o)/config.mk $(s)/build/genconf
+run/$(CONFIG_DIR)/%: $(s)/$(CONFIG_DIR)/% $(o)/config.mk $(s)/build/genconf
$(M)CF $<
$(Q)$(s)/build/genconf $< $@ $(o)/config.mk
$(o)/%.cf: $(s)/%.cf $(o)/config.mk $(s)/build/genconf
$(M)CF $<
$(Q)$(s)/build/genconf $< $@ $(o)/config.mk
- $(Q)cp $@ run/cf/$(basename $(@F))
+ $(Q)cp $@ run/$(CONFIG_DIR)/$(basename $(@F))
# Rules for libraries
# Top part of Makefile for the UCW Libraries
-# (c) 1997--2007 Martin Mares <mj@ucw.cz>
+# (c) 1997--2008 Martin Mares <mj@ucw.cz>
# Set to 1 if you want verbose output
V=0
DIRS=
PROGS=
CONFIGS=
+CONFIG_DIR=cf
TESTS=
EXTRA_RUNDIRS=tmp log
INSTALL_RUNDIRS=bin lib