src/hg/snp/makefile 1.4
1.4 2010/03/14 23:20:59 hiram
add clean target and use curly braces on variables
Index: src/hg/snp/makefile
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/snp/makefile,v
retrieving revision 1.3
retrieving revision 1.4
diff -b -B -U 4 -r1.3 -r1.4
--- src/hg/snp/makefile 18 Dec 2007 05:36:34 -0000 1.3
+++ src/hg/snp/makefile 14 Mar 2010 23:20:59 -0000 1.4
@@ -1,11 +1,15 @@
SNP_DIRS=snpLoad snpMask snpValid
all::
- @for D in $(SNP_DIRS) x; do \
+ @for D in ${SNP_DIRS} x; do \
if test "$$D" != "x" ; then \
- ( cd $$D && echo $$D && $(MAKE) ) ;\
+ ( cd $$D && echo $$D && ${MAKE} ) ;\
x=$$? ; if [ $$x -ne 0 ]; then exit $$x ; fi \
fi ;\
done
+clean::
+ @for D in ${SNP_DIRS} ; do \
+ ( cd "$$D" && echo cleaning $$D && ${MAKE} clean ) ; \
+ done