make install: half way
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user