make install: half way

This commit is contained in:
Philippe Teuwen 2019-08-30 21:55:13 +02:00
commit 4fdb5a2f4b
10 changed files with 112 additions and 58 deletions

View file

@ -1,6 +1,7 @@
include ../common_arm/Makefile.common
BINS = bootrom.bin fullimage.bin proxmark3_recovery.bin
INSTALLFW = proxmark3_recovery.bin
BINS = bootrom.bin fullimage.bin $(INSTALLFW)
all: $(BINS)
@ -17,14 +18,15 @@ proxmark3_recovery.bin: bootrom.bin fullimage.bin
$(Q)cat bootrom.bin fullimage.bin > $@
clean:
$(Q)rm -f $(BINS)
$(Q)$(RM) $(BINS)
install: all
$(info [@] Installing recovery to $(PREFIX))
@true
$(info [@] Installing recovery to $(DESTDIR)$(PREFIX)...)
$(Q)$(MKDIR) $(DESTDIR)$(PREFIX)$(INSTALLFWRELPATH)
$(Q)$(CP) $(INSTALLFW) $(DESTDIR)$(PREFIX)$(INSTALLFWRELPATH)
uninstall: all
$(info [@] Uninstalling recovery from $(PREFIX))
@true
uninstall:
$(info [@] Uninstalling recovery from $(DESTDIR)$(PREFIX)...)
$(Q)$(RM) $(foreach fw,$(INSTALLFW),$(DESTDIR)$(PREFIX)$(INSTALLFWRELPATH)$(notdir $(fw)))
PHONY: all clean install uninstall
.PHONY: all clean install uninstall