Skip to content

Commit 496fd82

Browse files
committed
Now cleanbin rule supported VERBOSE option
See also 9766050.
1 parent 9766050 commit 496fd82

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

Makefile

+9-2
Original file line numberDiff line numberDiff line change
@@ -289,14 +289,21 @@ endif
289289

290290

291291
cleanbin:
292+
# Check whether the verbose is activated
293+
ifeq "$(MAKE_VERBOSE)" "true"
294+
$(eval VERBOSE_FLAGS := -v)
295+
else
296+
$(eval VERBOSE_FLAGS :=)
297+
endif
298+
292299
@echo ""
293300
@echo ">> [ CLEAN ONLY THE CLASS OBJECTS ] <<"
294301
@echo "$(PREFIX) Cleaning the class files..."
295-
@-rm -r $(CLASSES_PATH)
302+
@-rm -r $(CLASSES_PATH) $(VERBOSE_FLAGS)
296303
@echo ""
297304
@echo "$(PREFIX) All cleaned up."
298305

299-
$(if $(shell test -e $(jar) && echo "1"),\
306+
$(if $(shell test -f $(jar) && echo "1"),\
300307
@echo 'File "$(subst ./,,$(jar))" is still exists.',\
301308
@echo 'File "$(subst ./,,$(jar))" is missing or has been deleted.'\
302309
)

0 commit comments

Comments
 (0)