mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-11-01 13:20:30 +00:00
Added DESTDIR Makefile variable
Set DESTDIR if you want to install at some other place then where you will run everything from. git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@675 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
258c8dd869
commit
01bad38253
10 files changed
+33
-29
No files matched your search
+3
-3
@@ -27,9 +27,9 @@ ETCINSTALL := $(ETCDIR)/sensors.conf
|
||||
# No all rule
|
||||
|
||||
install-etc:
|
||||
$(MKDIR) $(ETCDIR)
|
||||
if [ ! -e $(ETCINSTALL) ] ; then \
|
||||
$(INSTALL) -o root -g root -m 644 $(ETCTARGET) $(ETCINSTALL); \
|
||||
$(MKDIR) $(DESTDIR)$(ETCDIR)
|
||||
if [ ! -e $(DESTDIR)$(ETCINSTALL) ] ; then \
|
||||
$(INSTALL) -o root -g root -m 644 $(ETCTARGET) $(DESTDIR)$(ETCINSTALL); \
|
||||
fi
|
||||
install :: install-etc
|
||||
|
||||
|
||||
Reference in new issue
Block a user