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:
Frodo Looijaard committed 1999-12-24 19:52:28 +00:00
1 parent 258c8dd869
commit 01bad38253
10 files changed
+33 -29

No files matched your search

+3 -3
View File
@@ -35,9 +35,9 @@ all-kernel: $(KERNELTARGETS)
all :: all-kernel
install-kernel: all-kernel
$(MKDIR) $(MODDIR)
if [ -n "$(MODDIR)" ] ; then \
$(INSTALL) -o root -g root -m 644 $(KERNELTARGETS) $(MODDIR) ;\
$(MKDIR) $(DESTDIR)$(MODDIR)
if [ -n "$(DESTDIR)$(MODDIR)" ] ; then \
$(INSTALL) -o root -g root -m 644 $(KERNELTARGETS) $(DESTDIR)$(MODDIR) ;\
fi
install :: install-kernel
+3 -3
View File
@@ -51,9 +51,9 @@ all-kernel-busses: $(KERNELBUSSESTARGETS)
all :: all-kernel-busses
install-kernel-busses: all-kernel-busses
$(MKDIR) $(MODDIR)
if [ -n "$(MODDIR)" ] ; then \
$(INSTALL) -o root -g root -m 644 $(KERNELBUSSESTARGETS) $(MODDIR) ; \
$(MKDIR) $(DESTDIR)$(MODDIR)
if [ -n "$(DESTDIR)$(MODDIR)" ] ; then \
$(INSTALL) -o root -g root -m 644 $(KERNELBUSSESTARGETS) $(DESTDIR)$(MODDIR) ; \
fi
install :: install-kernel-busses
+3 -3
View File
@@ -64,9 +64,9 @@ all-kernel-chips: $(KERNELCHIPSTARGETS)
all :: all-kernel-chips
install-kernel-chips: all-kernel-chips
$(MKDIR) $(MODDIR)
if [ -n "$(MODDIR)" ] ; then \
$(INSTALL) -o root -g root -m 644 $(KERNELCHIPSTARGETS) $(MODDIR) ;\
$(MKDIR) $(DESTDIR)$(MODDIR)
if [ -n "$(DESTDIR)$(MODDIR)" ] ; then \
$(INSTALL) -o root -g root -m 644 $(KERNELCHIPSTARGETS) $(DESTDIR)$(MODDIR) ;\
fi
install :: install-kernel-chips
+2 -2
View File
@@ -30,8 +30,8 @@ KERNELINCLUDEFILES += $(MODULE_DIR)/i2c-isa.h
endif
install-all-kernel-include:
$(MKDIR) $(SYSINCLUDEDIR)
$(INSTALL) -o root -g root -m 644 $(KERNELINCLUDEFILES) $(SYSINCLUDEDIR)
$(MKDIR) $(DESTDIR)$(SYSINCLUDEDIR)
$(INSTALL) -o root -g root -m 644 $(KERNELINCLUDEFILES) $(DESTDIR)$(SYSINCLUDEDIR)
install :: install-all-kernel-include