summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2016-10-04 17:30:57 +0200
committerTobias Klauser <tklauser@distanz.ch>2016-10-04 17:30:57 +0200
commit2671a349c712ac7d0c0f8cd3f4ede13434859d6d (patch)
tree29bdb5f32491ba822468ba8dd4470f5cf6375f53 /Makefile
parent70968e7726223664e2d8458773775432cdbee5a6 (diff)
build: Unify default values for PREFIX and ETCDIR in configure
The netsniff-ng make system is no longer usable without the `Config' file generated by the ^configure' script. Thus it's now possible to move default value definitions for PREFIX and ETCDIR to the configure script, so we they're not duplicated in `configure' and the Makefile. Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 2 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index ad1c1fc..fbb50cc 100644
--- a/Makefile
+++ b/Makefile
@@ -20,10 +20,9 @@ EXTRAVERSION =
NAME = aisatsana
TOOLS ?= $(CONFIG_TOOLS)
-TOOLS ?= netsniff-ng trafgen astraceroute flowtop ifpps bpfc curvetun mausezahn
# For packaging purposes, prefix can define a different path.
-PREFIX ?= /usr/local
+PREFIX ?= $(CONFIG_PREFIX)
# Set to use ccache for compilation
CCACHE ?=
@@ -35,7 +34,7 @@ DESTDIR=
# Location of installation paths.
SBINDIR = $(PREFIX)/sbin
INCDIR = $(PREFIX)/include
-ETCDIR ?= /etc
+ETCDIR ?= $(CONFIG_ETCDIR)
ETCDIRE = $(ETCDIR)/netsniff-ng
MAN8DIR = $(PREFIX)/share/man/man8