]> git.donarmstrong.com Git - samtools.git/blobdiff - Makefile
Depend on libbam.a rather than the phony target, so that samtools is not
[samtools.git] / Makefile
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