summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2014-06-03 22:55:18 -0400
committerOri Bernstein <ori@eigenstate.org>2015-08-24 22:10:06 -0700
commit38585ffa91d7b6e7b9e4f688e3f9fa84a48f1925 (patch)
tree2257f6e3baa030faf7105155fd13eb3bd9238dc6
parentd7340a02cef50b6f3ae1344b71a6f78922002652 (diff)
downloadmc-38585ffa91d7b6e7b9e4f688e3f9fa84a48f1925.tar.gz
Improve 'make clean'
-rw-r--r--libcryptohash/mk/myr.mk14
1 files changed, 12 insertions, 2 deletions
diff --git a/libcryptohash/mk/myr.mk b/libcryptohash/mk/myr.mk
index 4c530ca..d5503ed 100644
--- a/libcryptohash/mk/myr.mk
+++ b/libcryptohash/mk/myr.mk
@@ -44,8 +44,18 @@ USE=$(MYRSRC:.myr=.use) $(MYRLIB)
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 \