Skip to content

Commit

Permalink
improve make clean
Browse files Browse the repository at this point in the history
  • Loading branch information
KimBioInfoStudio committed Sep 28, 2020
1 parent a6a4ea4 commit 9adaa6a
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 9adaa6a

Please sign in to comment.