]> mj.ucw.cz Git - libucw.git/commitdiff
Allow the name of the config file directory to be overridden.
authorMartin Mares <mj@ucw.cz>
Wed, 25 Jun 2008 14:04:28 +0000 (16:04 +0200)
committerMartin Mares <mj@ucw.cz>
Wed, 25 Jun 2008 14:24:27 +0000 (16:24 +0200)
build/Makebottom
build/Maketop

index 19d1179dc3fcf5ec5416ab1b64f4fa9dcbdbcbb3..0cea489e0778a7b0e3d86c8e20fbea98321504f0 100644 (file)
@@ -7,7 +7,7 @@ runtree: run/.tree-stamp $(addsuffix /.dir-stamp,$(addprefix $(o)/,$(DIRS)))
 
 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
@@ -15,7 +15,7 @@ run/.tree-stamp: $(o)/config.mk
 programs: $(PROGS)
 datafiles: $(DATAFILES)
 tests: $(TESTS)
-configs: $(addprefix run/cf/,$(CONFIGS))
+configs: $(addprefix run/$(CONFIG_DIR)/,$(CONFIGS))
 
 tags:
        etags `find . -name "*.[ch]"`
@@ -39,14 +39,14 @@ force:
 
 # 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
 
index 99f7f1dc8acfa5f0ec95a537fddee807746c5464..5981decfaad774618f3545c285875f65eb450fe3 100644 (file)
@@ -1,5 +1,5 @@
 # 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
@@ -16,6 +16,7 @@ LDFLAGS=$(LOPT) $(LEXTRA)
 DIRS=
 PROGS=
 CONFIGS=
+CONFIG_DIR=cf
 TESTS=
 EXTRA_RUNDIRS=tmp log
 INSTALL_RUNDIRS=bin lib