mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 13:53:55 -07:00
Add INSTALLSUDO param in Makefile.platform to limit sudo to install commands, better than sudo make install...
This commit is contained in:
parent
9880df8ca7
commit
9ebda88386
8 changed files with 45 additions and 41 deletions
|
@ -66,15 +66,15 @@ endif
|
|||
install: all
|
||||
ifneq (,$(INSTALLTOOLS))
|
||||
$(info [@] Installing $(BINS) to $(DESTDIR)$(PREFIX)...)
|
||||
$(Q)$(MKDIR) $(DESTDIR)$(PREFIX)$(PATHSEP)$(INSTALLTOOLSRELPATH)
|
||||
$(Q)$(CP) $(INSTALLTOOLS) $(DESTDIR)$(PREFIX)$(PATHSEP)$(INSTALLTOOLSRELPATH)
|
||||
$(Q)$(INSTALLSUDO) $(MKDIR) $(DESTDIR)$(PREFIX)$(PATHSEP)$(INSTALLTOOLSRELPATH)
|
||||
$(Q)$(INSTALLSUDO) $(CP) $(INSTALLTOOLS) $(DESTDIR)$(PREFIX)$(PATHSEP)$(INSTALLTOOLSRELPATH)
|
||||
endif
|
||||
@true
|
||||
|
||||
uninstall:
|
||||
ifneq (,$(INSTALLTOOLS))
|
||||
$(info [@] Uninstalling $(BINS) from $(DESTDIR)$(PREFIX)...)
|
||||
$(Q)$(RM) $(foreach tool,$(INSTALLTOOLS),$(DESTDIR)$(PREFIX)$(PATHSEP)$(INSTALLTOOLSRELPATH)$(PATHSEP)$(notdir $(tool)))
|
||||
$(Q)$(INSTALLSUDO) $(RM) $(foreach tool,$(INSTALLTOOLS),$(DESTDIR)$(PREFIX)$(PATHSEP)$(INSTALLTOOLSRELPATH)$(PATHSEP)$(notdir $(tool)))
|
||||
endif
|
||||
@true
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue