Changeset 3423

Show
Ignore:
Timestamp:
12/24/99 20:56:38 (15 years ago)
Author:
frodo
Message:

Implemented DESTDIR in Makefiles

For the lm_sensors build system, defining DESTDIR installs at some
other place than at which you will run everything later on.

Location:
i2c/trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • i2c/trunk/Makefile

    r3386 r3423  
    7474#LINUX_INCLUDE_DIR := $(LINUX_HEADERS) 
    7575 
     76# If you want to isntall everything at some other place then at which 
     77# you will run it, DESTDIR defines a prefix used at installation-time. 
     78# This is ignored for the i2c build system. 
     79DESTDIR := 
     80 
    7681# Uncomment the second line if you are a developer. This will enable many 
    7782# additional warnings at compile-time 
  • i2c/trunk/kernel/Module.mk

    r3409 r3423  
    6565 
    6666install-kernel: all-kernel 
    67         $(MKDIR) $(MODDIR) $(LINUX_INCLUDE_DIR) 
    68         $(INSTALL) -o root -g root -m 644 $(KERNELTARGETS) $(MODDIR) 
    69         $(INSTALL) -o root -g root -m 644 $(KERNELINCLUDES) $(LINUX_INCLUDE_DIR) 
     67        $(MKDIR) $(DESTDIR)$(MODDIR) $(DESTDIR)$(LINUX_INCLUDE_DIR) 
     68        $(INSTALL) -o root -g root -m 644 $(KERNELTARGETS) $(DESTDIR)$(MODDIR) 
     69        $(INSTALL) -o root -g root -m 644 $(KERNELINCLUDES) $(DESTDIR)$(LINUX_INCLUDE_DIR) 
    7070install :: install-kernel 
    7171