Skip to content

Commit

Permalink
Merge pull request #10 from KimBioInfoStudio/kim/improve_makefile
Browse files Browse the repository at this point in the history
improve make clean
  • Loading branch information
sfchen authored Sep 29, 2020
2 parents fd77e67 + 9adaa6a commit 4e9b103
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,14 @@ ${DIR_OBJ}/%.o:${DIR_SRC}/%.cpp make_obj_dir

.PHONY:clean
clean:
rm obj/*.o
rm $(TARGET)
@if test -d $(DIR_OBJ) ; \
then \
find $(DIR_OBJ) -name *.o -delete; \
fi
@if test -e $(TARGET) ; \
then \
rm $(TARGET) ; \
fi

make_obj_dir:
@if test ! -d $(DIR_OBJ) ; \
Expand Down

0 comments on commit 4e9b103

Please sign in to comment.