Riccardo Murri <murri_at_dmmm.uniroma1.it> add DESTDIR option
authorBart De Schuymer <bdschuym@pandora.be>
Tue, 30 Dec 2003 17:42:30 +0000 (17:42 +0000)
committerBart De Schuymer <bdschuym@pandora.be>
Tue, 30 Dec 2003 17:42:30 +0000 (17:42 +0000)
Makefile

index a0300fc..2f4fec0 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -4,7 +4,7 @@ PROGNAME:=ebtables
 PROGVERSION:=2.0.5
 PROGDATE:=July\ 2003
 
-MANDIR?=/usr/local/man
+MANDIR?=$(DESTDIR)/usr/local/man
 CFLAGS:=-Wall -Wunused
 CC:=gcc
 
@@ -18,10 +18,10 @@ OBJECTS:=getethertype.o ebtables.o communication.o $(EXT_OBJS)
 
 KERNEL_INCLUDES?=include/
 
-ETHERTYPESPATH?=/etc
+ETHERTYPESPATH?=$(DESTDIR)/etc
 ETHERTYPESFILE:=$(ETHERTYPESPATH)/ethertypes
 
-BINPATH?=/sbin/
+BINPATH?=$(DESTDIR)/sbin/
 BINFILE:=$(BINPATH)ebtables
 
 PROGSPECS:=-DPROGVERSION=\"$(PROGVERSION)\" \