]> mj.ucw.cz Git - libucw.git/commitdiff
Added a rule for installing config files from sub-directories.
authorMartin Mares <mj@ucw.cz>
Sun, 25 May 2008 16:38:00 +0000 (18:38 +0200)
committerMartin Mares <mj@ucw.cz>
Sun, 25 May 2008 16:38:00 +0000 (18:38 +0200)
This will be useful for out-of-tree users of our makefile system.

build/Makebottom

index a6a4ac63ce13400e7acbfc661f293ef991fd1a0a..bf9a49e966489e0c5479274212b0ec0c56fcc064 100644 (file)
@@ -43,6 +43,11 @@ run/cf/%: $(s)/cf/% $(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))
+
 # Rules for libraries
 
 %.a: