]> rtime.felk.cvut.cz Git - sysless.git/commitdiff
Update build-all/Makefile to always regenerate the build tree
authorMichal Sojka <sojkam1@fel.cvut.cz>
Mon, 19 Jul 2010 07:54:19 +0000 (09:54 +0200)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Mon, 19 Jul 2010 07:54:19 +0000 (09:54 +0200)
If we add or remove a config file, running make in build-all will
automatically take it into an account.

build-all/Makefile
build-all/create-build-tree.sh

index cee28d4e9fa30871e45a859f59898a4f59ab70f2..1b9be19939c0e9a8b5254e2f4303d28684177e45 100644 (file)
@@ -1,7 +1,8 @@
 include Makefile.dirs
 
-all $(MAKECMDGOALS): Makefile.dirs $(BUILD_DIRS)
+all $(MAKECMDGOALS): $(BUILD_DIRS)
 
+.PHONY: Makefile.dirs
 Makefile.dirs:
        ./create-build-tree.sh
 
index 6d8ad7b1f778674fe60add96117c955b51a43304..c6dc1338c00473cf9591ffca7e74dd6e8f02e299 100755 (executable)
@@ -25,8 +25,8 @@ find ../board -name 'config.*' | while read config; do
 
     (
        cd $build
-       ln -s $back/../{app,arch,board,doc,libs4c,Makefile,Makefile.omk,Makefile.rules} .
-       ln -s $back/$config config.target
+       ln -sf $back/../{app,arch,board,doc,libs4c,Makefile,Makefile.omk,Makefile.rules} .
+       ln -sf $back/$config config.target
     )
 
     echo "     $build \\" >> Makefile.dirs