mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2024-12-31 04:39:49 +08:00
Add possibility to make install more recovery variants
This commit is contained in:
parent
6949a780fc
commit
555c0743cb
1 changed files with 8 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue