Skip to content

Commit

Permalink
Makefile: Add dependency for header files
Browse files Browse the repository at this point in the history
Including the %.h dep. in the %.o target eases rebuilding.
  • Loading branch information
thomas committed Oct 9, 2017
1 parent 2edd932 commit 3a20e01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ SOURCE = align dbseq main pairs param reads utilities
OBJS1= $(patsubst %,%.o,$(SOURCE))

all: bsmap
%.o:%.cpp
%.o:%.cpp %.h
$(CXX) $(CXXFLAGS) -c $< -o $@
bsmap: $(OBJS1)
$(MAKE) -C samtools
Expand Down

0 comments on commit 3a20e01

Please sign in to comment.