mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-20 21:33:47 -07:00
Provide make common/install
This commit is contained in:
parent
620be5f5cc
commit
7151f3fd50
1 changed files with 6 additions and 2 deletions
8
Makefile
8
Makefile
|
@ -22,7 +22,9 @@ INSTALLSCRIPTS=pm3 pm3-flash-all pm3-flash-bootrom pm3-flash-fullimage
|
||||||
INSTALLSHARES=tools/jtag_openocd traces
|
INSTALLSHARES=tools/jtag_openocd traces
|
||||||
INSTALLDOCS=doc/*.md doc/md
|
INSTALLDOCS=doc/*.md doc/md
|
||||||
|
|
||||||
install: all
|
install: all common/install
|
||||||
|
|
||||||
|
common/install:
|
||||||
$(info [@] Installing common resources to $(MYDESTDIR)$(PREFIX)...)
|
$(info [@] Installing common resources to $(MYDESTDIR)$(PREFIX)...)
|
||||||
ifneq (,$(INSTALLSCRIPTS))
|
ifneq (,$(INSTALLSCRIPTS))
|
||||||
$(Q)$(MKDIR) $(DESTDIR)$(PREFIX)$(INSTALLBINRELPATH)
|
$(Q)$(MKDIR) $(DESTDIR)$(PREFIX)$(INSTALLBINRELPATH)
|
||||||
|
@ -49,7 +51,9 @@ ifeq ($(platform),Linux)
|
||||||
$(Q)$(CP) driver/77-pm3-usb-device-blacklist.rules $(DESTDIR)$(UDEV_PREFIX)/77-pm3-usb-device-blacklist.rules
|
$(Q)$(CP) driver/77-pm3-usb-device-blacklist.rules $(DESTDIR)$(UDEV_PREFIX)/77-pm3-usb-device-blacklist.rules
|
||||||
endif
|
endif
|
||||||
|
|
||||||
uninstall:
|
uninstall: common/uninstall
|
||||||
|
|
||||||
|
common/uninstall:
|
||||||
$(info [@] Uninstalling common resources from $(MYDESTDIR)$(PREFIX)...)
|
$(info [@] Uninstalling common resources from $(MYDESTDIR)$(PREFIX)...)
|
||||||
ifneq (,$(INSTALLSCRIPTS))
|
ifneq (,$(INSTALLSCRIPTS))
|
||||||
$(Q)$(RM) $(foreach script,$(INSTALLSCRIPTS),$(DESTDIR)$(PREFIX)$(INSTALLBINRELPATH)$(notdir $(script)))
|
$(Q)$(RM) $(foreach script,$(INSTALLSCRIPTS),$(DESTDIR)$(PREFIX)$(INSTALLBINRELPATH)$(notdir $(script)))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue