summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBart De Schuymer <bdschuym@pandora.be>2002-11-22 18:55:55 +0000
committerBart De Schuymer <bdschuym@pandora.be>2002-11-22 18:55:55 +0000
commit2eb1f9232f7136f6d01c52ec8896b6485c22a3e5 (patch)
tree241a183c56c6a893709c666da48614a09aa6b522
parent6c3dc65ed8cc769d57d6574eeb41942b783c45de (diff)
add ETHERTYPESPATH, use ETHERTYPESFILE
-rw-r--r--Makefile15
1 files changed, 9 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index dbf9a3f..f46c3f7 100644
--- a/Makefile
+++ b/Makefile
@@ -1,8 +1,8 @@
# ebtables Makefile
PROGNAME:=ebtables
-PROGVERSION:="2.0.1"
-PROGDATE:="October 2002"
+PROGVERSION:=2.0.1
+PROGDATE:=October\ 2002
MANDIR?=/usr/local/man
CFLAGS:=-Wall -Wunused
@@ -21,8 +21,11 @@ else
KERNEL_INCLUDES:=include/
endif
-#ETHERTYPESFILE:="/etc/ethertypes"
-ETHERTYPESFILE:="/usr/local/etc/ethertypes"
+ifneq ($(ETHERTYPESPATH),)
+ETHERTYPESFILE:=$(ETHERTYPESPATH)ethertypes
+else
+ETHERTYPESFILE:=/usr/local/etc/ethertypes
+endif
PROGSPECS:=-DPROGVERSION=\"$(PROGVERSION)\" \
-DPROGNAME=\"$(PROGNAME)\" \
@@ -48,7 +51,7 @@ $(MANDIR)/man8/ebtables.8: ebtables.8
mkdir -p $(@D)
install -m 0644 -o root -g root $< $@
-/etc/ethertypes: ethertypes
+$(ETHERTYPESFILE): ethertypes
mkdir -p $(@D)
install -m 0644 -o root -g root $< $@
@@ -57,7 +60,7 @@ exec: ebtables
install -m 0755 -o root -g root $< /sbin/ebtables
.PHONY: install
-install: $(MANDIR)/man8/ebtables.8 ebtables /etc/ethertypes exec
+install: $(MANDIR)/man8/ebtables.8 ebtables $(ETHERTYPESFILE) exec
.PHONY: clean
clean: