We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
cleanbin
VERBOSE
1 parent 9766050 commit 496fd82Copy full SHA for 496fd82
Makefile
@@ -289,14 +289,21 @@ endif
289
290
291
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
+
299
@echo ""
300
@echo ">> [ CLEAN ONLY THE CLASS OBJECTS ] <<"
301
@echo "$(PREFIX) Cleaning the class files..."
- @-rm -r $(CLASSES_PATH)
302
+ @-rm -r $(CLASSES_PATH) $(VERBOSE_FLAGS)
303
304
@echo "$(PREFIX) All cleaned up."
305
- $(if $(shell test -e $(jar) && echo "1"),\
306
+ $(if $(shell test -f $(jar) && echo "1"),\
307
@echo 'File "$(subst ./,,$(jar))" is still exists.',\
308
@echo 'File "$(subst ./,,$(jar))" is missing or has been deleted.'\
309
)
0 commit comments