mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-19 21:03:48 -07:00
Merge pull request #381 from edward-p/master
Add possibility to make install more recovery variants
This commit is contained in:
commit
bad24a71f0
1 changed files with 8 additions and 2 deletions
|
@ -1,6 +1,12 @@
|
||||||
include ../common_arm/Makefile.common
|
include ../common_arm/Makefile.common
|
||||||
|
|
||||||
INSTALLFW = proxmark3_recovery.bin
|
INSTALLFW = proxmark3_recovery.bin
|
||||||
|
ifneq (,$(FWTAG))
|
||||||
|
INSTALLFWTAG = $(notdir $(INSTALLFW:%.bin=%-$(FWTAG).bin))
|
||||||
|
else
|
||||||
|
INSTALLFWTAG = $(notdir $(INSTALLFW))
|
||||||
|
endif
|
||||||
|
|
||||||
BINS = bootrom.bin fullimage.bin $(INSTALLFW)
|
BINS = bootrom.bin fullimage.bin $(INSTALLFW)
|
||||||
|
|
||||||
all: $(BINS)
|
all: $(BINS)
|
||||||
|
@ -23,10 +29,10 @@ clean:
|
||||||
install: all
|
install: all
|
||||||
$(info [@] Installing recovery to $(DESTDIR)$(PREFIX)...)
|
$(info [@] Installing recovery to $(DESTDIR)$(PREFIX)...)
|
||||||
$(Q)$(MKDIR) $(DESTDIR)$(PREFIX)$(INSTALLFWRELPATH)
|
$(Q)$(MKDIR) $(DESTDIR)$(PREFIX)$(INSTALLFWRELPATH)
|
||||||
$(Q)$(CP) $(INSTALLFW) $(DESTDIR)$(PREFIX)$(INSTALLFWRELPATH)
|
$(Q)$(CP) $(INSTALLFW) $(DESTDIR)$(PREFIX)$(INSTALLFWRELPATH)$(INSTALLFWTAG)
|
||||||
|
|
||||||
uninstall:
|
uninstall:
|
||||||
$(info [@] Uninstalling recovery from $(DESTDIR)$(PREFIX)...)
|
$(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
|
.PHONY: all clean install uninstall
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue