chiark / gitweb /
9445e0824a02f5a769defdc7499c180c7eba693f
[userv-utils.git] / ipif / Makefile
1 #
2
3 OPTIMISE=       -O2
4 CFLAGS=         -Wall -Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith \
5                 -Wwrite-strings -g $(OPTIMISE) -D_GNU_SOURCE
6
7 etcdir=         /etc
8 prefix=         /usr/local
9 bindir=         $(prefix)/bin
10
11 libdir=         $(prefix)/lib
12 libuserv=       $(libdir)/userv
13
14 etcuserv=       $(etcdir)/userv
15 services=       $(etcuserv)/services.d
16
17 TARGETS=        service
18
19 all:            $(TARGETS)
20
21 install:        all
22                 mkdir -p $(libuserv) $(services)
23                 cp -b service $(libuserv)/ipif
24                 cp ipif $(services)/ipif:new
25                 cp -b udptunnel $(bindir)/.
26                 set -e; cd $(services); test -f ipif || mv ipif:new ipif