shithub: mc

Download patch

ref: 38585ffa91d7b6e7b9e4f688e3f9fa84a48f1925
parent: d7340a02cef50b6f3ae1344b71a6f78922002652
author: Ori Bernstein <ori@eigenstate.org>
date: Tue Jun 3 18:55:18 EDT 2014

Improve 'make clean'

--- a/libcryptohash/mk/myr.mk
+++ b/libcryptohash/mk/myr.mk
@@ -44,8 +44,18 @@
 clean: subdirs-clean
 	rm -f $(OBJ)
 	rm -f $(USE)
-	rm -f lib$(MYRLIB).a
-
+	@if [ ! -z "$(MYRLIB)" ]; then \
+	    echo rm -f $(MYRLIB); \
+	    rm -f $(MYRLIB); \
+	    echo rm -f lib$(MYRLIB).a; \
+	    rm -f lib$(MYRLIB).a; \
+	fi
+	@if [ ! -z "$(MYRBIN)" ]; then \
+	    echo rm -f $(MYRBIN); \
+	    rm -f $(MYRBIN); \
+	    echo rm -f lib$(MYRBIN).a; \
+	    rm -f lib$(MYRBIN).a; \
+	fi
 
 install: subdirs-install $(MYRBIN) $(_LIBNAME) $(MAN)
 	@if [ ! -z "$(MYRBIN)" ]; then \