summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorerdgeist <de@gsmk.de>2014-06-10 03:14:36 +0200
committererdgeist <de@gsmk.de>2014-06-10 03:14:36 +0200
commit20f8300d644c8c9f97da43b33a6bb50db3bd2de1 (patch)
tree39a1b799deffac7a56356e7ed8317332ca76dfb9
parent07f5ea21f6236893e31a0d8a5cdebf72ec86ef74 (diff)
Make Makefile STAGEDIR aware
-rw-r--r--Makefile9
1 files changed, 5 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index dc9a30d..2c94458 100644
--- a/Makefile
+++ b/Makefile
@@ -3,6 +3,7 @@
3CFLAGS+=-Wall -Wextra -pedantic -Os 3CFLAGS+=-Wall -Wextra -pedantic -Os
4LDFLAGS+=-s -lutil -ljail 4LDFLAGS+=-s -lutil -ljail
5PREFIX?=/usr/local 5PREFIX?=/usr/local
6DST=${DESTDIR}${PREFIX}
6 7
7all: jaildaemon 8all: jaildaemon
8 9
@@ -10,10 +11,10 @@ jaildaemon: jaildaemon.c
10 $(CC) -o $@ $< $(CFLAGS) $(LDFLAGS) 11 $(CC) -o $@ $< $(CFLAGS) $(LDFLAGS)
11 12
12install: jaildaemon 13install: jaildaemon
13 mkdir -p ${PREFIX}/man/man1/ 14 mkdir -p ${DST}/man/man1/
14 install -o 0 -g 0 -m 0755 jaildaemon $(PREFIX)/bin 15 install -o 0 -g 0 -m 0755 jaildaemon ${DST}/bin
15 install -o 0 -g 0 -m 0755 rc.d-jaildaemon $(PREFIX)/etc/rc.d/jaildaemon 16 install -o 0 -g 0 -m 0755 rc.d-jaildaemon ${DST}/etc/rc.d/jaildaemon
16 install -o 0 -g 0 -m 0644 man1/jaildaemon.1 ${PREFIX}/man/man1/ 17 install -o 0 -g 0 -m 0644 man1/jaildaemon.1 ${DST}/man/man1/
17 18
18.PHONY: clean test 19.PHONY: clean test
19clean: 20clean: