Skip to content

Commit

Permalink
Merge pull request OpenGene#285 from KimBioInfoStudio/kim/imporve_mak…
Browse files Browse the repository at this point in the history
…e_clean

imporve make clean
  • Loading branch information
sfchen authored Sep 26, 2020
2 parents 77ff791 + 0dfe657 commit 69702c5
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 69702c5

Please sign in to comment.