29 lines
713 B
Diff
29 lines
713 B
Diff
|
--- a/Makefile
|
||
|
+++ b/Makefile
|
||
|
@@ -12,18 +12,18 @@
|
||
|
MAKEFLAGS += --no-print-directory
|
||
|
endif
|
||
|
|
||
|
-PREFIX?=/usr
|
||
|
+PREFIX?=@TERMUX_PREFIX@
|
||
|
LIBDIR?=$(PREFIX)/lib
|
||
|
-SBINDIR?=/sbin
|
||
|
-CONFDIR?=/etc/iproute2
|
||
|
-NETNS_RUN_DIR?=/var/run/netns
|
||
|
-NETNS_ETC_DIR?=/etc/netns
|
||
|
+SBINDIR?=$(PREFIX)/sbin
|
||
|
+CONFDIR?=$(PREFIX)/etc/iproute2
|
||
|
+NETNS_RUN_DIR?=$(PREFIX)/var/run/netns
|
||
|
+NETNS_ETC_DIR?=$(PREFIX)/etc/netns
|
||
|
DATADIR?=$(PREFIX)/share
|
||
|
HDRDIR?=$(PREFIX)/include/iproute2
|
||
|
DOCDIR?=$(DATADIR)/doc/iproute2
|
||
|
MANDIR?=$(DATADIR)/man
|
||
|
-ARPDDIR?=/var/lib/arpd
|
||
|
-KERNEL_INCLUDE?=/usr/include
|
||
|
+ARPDDIR?=$(PREFIX)/var/lib/arpd
|
||
|
+KERNEL_INCLUDE?=$(PREFIX)/include
|
||
|
BASH_COMPDIR?=$(DATADIR)/bash-completion/completions
|
||
|
|
||
|
# Path to db_185.h include
|