From f43456b5736746343c45a18042196e60765ad74b Mon Sep 17 00:00:00 2001 From: Bart De Schuymer Date: Sat, 15 Feb 2003 11:12:01 +0000 Subject: add BINDIR option --- Makefile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'Makefile') 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: -- cgit v1.2.3