Skip to content

Commit

Permalink
Makefile: Correct recursive usage
Browse files Browse the repository at this point in the history
Using $(MAKE) instead of "make", is special for gnu make. It
correctly processes Makeflags and parallel execution.
  • Loading branch information
donald committed Oct 8, 2017
1 parent 6900deb commit a8f3a4b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ all: bsmap
%.o:%.cpp
$(CXX) $(CXXFLAGS) -c $< -o $@
bsmap: $(OBJS1)
(cd samtools; make)
(cd gzstream; make)
$(MAKE) -C samtools
$(MAKE) -C gzstream
$(CXX) $(CXXFLAGS) $^ -o $@ $(THREAD) -lbam -lz -lgzstream

clean:
rm -f *.o *~ bsmap
(cd samtools; make clean)
(cd gzstream; make clean)
$(MAKE) -C samtools clean
$(MAKE) -C gzstream clean
install:
install -d $(BIN)
install ./bsmap $(BIN)
Expand Down

0 comments on commit a8f3a4b

Please sign in to comment.