]> git.donarmstrong.com Git - samtools.git/commitdiff
Depend on libbam.a rather than the phony target, so that samtools is not
authorOn behalf of John Marshall <lh3@sanger.ac.uk>
Thu, 10 Dec 2009 15:03:58 +0000 (15:03 +0000)
committerOn behalf of John Marshall <lh3@sanger.ac.uk>
Thu, 10 Dec 2009 15:03:58 +0000 (15:03 +0000)
unnecessarily rebuilt every time.  Also clean bgzip.

Makefile
Makefile.mingw

index 59beb573322ef765f3f37ee4eed1375732d78aec..0ab4498a10f81cfb4f0d677d393e354551b379b2 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -31,12 +31,15 @@ all-recur lib-recur clean-recur cleanlocal-recur install-recur:
 
 all:$(PROG)
 
+.PHONY:all lib clean cleanlocal
+.PHONY:all-recur lib-recur clean-recur cleanlocal-recur install-recur
+
 lib:libbam.a
 
 libbam.a:$(LOBJS)
                $(AR) -cru $@ $(LOBJS)
 
-samtools:lib $(AOBJS)
+samtools:$(AOBJS) libbam.a
                $(CC) $(CFLAGS) -o $@ $(AOBJS) libbam.a -lm $(LIBPATH) $(LIBCURSES) -lz
 
 razip:razip.o razf.o $(KNETFILE_O)
@@ -64,6 +67,6 @@ faidx.o:faidx.h razf.h khash.h
 faidx_main.o:faidx.h razf.h
 
 cleanlocal:
-               rm -fr gmon.out *.o a.out *.exe *.dSYM razip $(PROG) *~ *.a
+               rm -fr gmon.out *.o a.out *.exe *.dSYM razip bgzip $(PROG) *~ *.a
 
 clean:cleanlocal-recur
index 670c941c5e692408d64ab37e3114bbf9e45193bd..9df4b9ad8166a66ff8545b0a4c7d9e908ecd60a6 100644 (file)
@@ -21,12 +21,15 @@ LIBPATH=
 
 all:$(PROG)
 
+.PHONY:all lib clean cleanlocal
+.PHONY:all-recur lib-recur clean-recur cleanlocal-recur install-recur
+
 lib:libbam.a
 
 libbam.a:$(LOBJS)
                $(AR) -cru $@ $(LOBJS)
 
-samtools:lib $(AOBJS)
+samtools:$(AOBJS) libbam.a
                $(CC) $(CFLAGS) -o $@ $(AOBJS) $(LIBPATH) -lm -L. -lbam -Lwin32 -lz -lcurses -lws2_32
 
 razip:razip.o razf.o $(KNETFILE_O)
@@ -53,4 +56,4 @@ faidx.o:faidx.h razf.h khash.h
 faidx_main.o:faidx.h razf.h
 
 clean:
-               rm -fr gmon.out *.o *.exe *.dSYM razip $(PROG) *~ *.a
+               rm -fr gmon.out *.o *.exe *.dSYM razip bgzip $(PROG) *~ *.a