Merge pull request #381 from edward-p/master

Add possibility to make install more recovery variants
This commit is contained in:
Philippe Teuwen 2019-08-31 10:11:07 +02:00 committed by GitHub
commit bad24a71f0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,6 +1,12 @@
include ../common_arm/Makefile.common
INSTALLFW = proxmark3_recovery.bin
ifneq (,$(FWTAG))
INSTALLFWTAG = $(notdir $(INSTALLFW:%.bin=%-$(FWTAG).bin))
else
INSTALLFWTAG = $(notdir $(INSTALLFW))
endif
BINS = bootrom.bin fullimage.bin $(INSTALLFW)
all: $(BINS)
@ -23,10 +29,10 @@ clean:
install: all
$(info [@] Installing recovery to $(DESTDIR)$(PREFIX)...)
$(Q)$(MKDIR) $(DESTDIR)$(PREFIX)$(INSTALLFWRELPATH)
$(Q)$(CP) $(INSTALLFW) $(DESTDIR)$(PREFIX)$(INSTALLFWRELPATH)
$(Q)$(CP) $(INSTALLFW) $(DESTDIR)$(PREFIX)$(INSTALLFWRELPATH)$(INSTALLFWTAG)
uninstall:
$(info [@] Uninstalling recovery from $(DESTDIR)$(PREFIX)...)
$(Q)$(RM) $(foreach fw,$(INSTALLFW),$(DESTDIR)$(PREFIX)$(INSTALLFWRELPATH)$(notdir $(fw)))
$(Q)$(RM) $(DESTDIR)$(PREFIX)$(INSTALLFWRELPATH)$(INSTALLFWTAG)
.PHONY: all clean install uninstall