summaryrefslogtreecommitdiffstats
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
commit35f11f141a1eaa63a901cfe844c1afa8f7826bb1 (patch)
treea557da8f930cff25113e11687a2f2497c89b9632
parentb97525d446845819cc88e7b0713f57f0eff293be (diff)
add BINDIR option
-rw-r--r--userspace/ebtables2/Makefile9
1 files changed, 7 insertions, 2 deletions
diff --git a/userspace/ebtables2/Makefile b/userspace/ebtables2/Makefile
index 6d0744d..75ea552 100644
--- a/userspace/ebtables2/Makefile
+++ b/userspace/ebtables2/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: