ref: 3ccf3f0a5e3c33e3722a9ea29134ea5a7dacf041
parent: 4457a03154b82d5e5e60a98b6ad5f217436c64b5
author: Ori Bernstein <ori@eigenstate.org>
date: Mon Apr 13 20:24:29 EDT 2015
Add support for all the usual targets.
--- a/Makefile
+++ b/Makefile
@@ -7,6 +7,8 @@
EXTRA=buildmyr
EXTRACLEAN=cleanmyr
+EXTRAINSTALL=installmyr
+EXTRAUNINSTALL=uninstallmyr
include mk/c.mk
include config.mk
@@ -26,3 +28,9 @@
cleanmyr:
./mbldwrap.sh clean
+
+installmyr:
+ ./mbldwrap.sh install
+
+uninstallmyr:
+ ./mbldwrap.sh uninstall
--- a/mk/c.mk
+++ b/mk/c.mk
@@ -52,7 +52,7 @@
clean: subdirs-clean $(EXTRACLEAN)
rm -f ${BIN} ${OBJ} ${CLEAN} ${LIB}
-install: subdirs-install $(INSTBIN) $(INSTLIB) $(INSTHDR) $(INSTPKG)
+install: subdirs-install $(INSTBIN) $(INSTLIB) $(INSTHDR) $(INSTPKG) $(EXTRAINSTALL)
@for i in $(INSTBIN); do \
echo install $(abspath $$i $(DESTDIR)/$(INST_ROOT)/bin); \
mkdir -p $(abspath $(DESTDIR)/$(INST_ROOT)/bin); \
@@ -87,7 +87,7 @@
exit 1 \
); done
-uninstall: subdirs-uninstall
+uninstall: subdirs-uninstall $(EXTRAUNINSTALL)
@for i in $(INSTBIN); do \
echo rm -f $(abspath $(DESTDIR)/$(INST_ROOT)/bin/$$i); \
rm -f $(abspath $(DESTDIR)/$(INST_ROOT)/bin/$$i); \