summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorBart De Schuymer <bdschuym@pandora.be>2003-02-15 11:12:01 +0000
committerBart De Schuymer <bdschuym@pandora.be>2003-02-15 11:12:01 +0000
commitf43456b5736746343c45a18042196e60765ad74b (patch)
tree27f93874c57673dc317540809a92b7f2d5116e14 /Makefile
parent1f7f002d1bc77486b296879e08edceb63c9d64d4 (diff)
add BINDIR option
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 7 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 6d0744d..75ea552 100644
--- a/Makefile
+++ b/Makefile
@@ -27,6 +27,11 @@ ETHERTYPESPATH:=/etc/
endif
ETHERTYPESFILE:=$(ETHERTYPESPATH)ethertypes
+ifeq ($(BINPATH),)
+BINPATH:=/sbin/
+endif
+BINFILE:=$(BINPATH)ebtables
+
PROGSPECS:=-DPROGVERSION=\"$(PROGVERSION)\" \
-DPROGNAME=\"$(PROGNAME)\" \
-DPROGDATE=\"$(PROGDATE)\" \
@@ -57,10 +62,10 @@ $(ETHERTYPESFILE): ethertypes
.PHONY: exec
exec: ebtables
- install -m 0755 -o root -g root $< /sbin/ebtables
+ install -m 0755 -o root -g root $< $(BINFILE)
.PHONY: install
-install: $(MANDIR)/man8/ebtables.8 ebtables $(ETHERTYPESFILE) exec
+install: $(MANDIR)/man8/ebtables.8 $(ETHERTYPESFILE) exec
.PHONY: clean
clean: