mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-14 18:48:13 -07:00
make install: half way
This commit is contained in:
parent
b5f5b9276f
commit
4fdb5a2f4b
10 changed files with 112 additions and 58 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue