diff options
author | erdgeist <de@gsmk.de> | 2014-06-10 03:14:36 +0200 |
---|---|---|
committer | erdgeist <de@gsmk.de> | 2014-06-10 03:14:36 +0200 |
commit | 20f8300d644c8c9f97da43b33a6bb50db3bd2de1 (patch) | |
tree | 39a1b799deffac7a56356e7ed8317332ca76dfb9 /Makefile | |
parent | 07f5ea21f6236893e31a0d8a5cdebf72ec86ef74 (diff) |
Make Makefile STAGEDIR aware
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -3,6 +3,7 @@ | |||
3 | CFLAGS+=-Wall -Wextra -pedantic -Os | 3 | CFLAGS+=-Wall -Wextra -pedantic -Os |
4 | LDFLAGS+=-s -lutil -ljail | 4 | LDFLAGS+=-s -lutil -ljail |
5 | PREFIX?=/usr/local | 5 | PREFIX?=/usr/local |
6 | DST=${DESTDIR}${PREFIX} | ||
6 | 7 | ||
7 | all: jaildaemon | 8 | all: jaildaemon |
8 | 9 | ||
@@ -10,10 +11,10 @@ jaildaemon: jaildaemon.c | |||
10 | $(CC) -o $@ $< $(CFLAGS) $(LDFLAGS) | 11 | $(CC) -o $@ $< $(CFLAGS) $(LDFLAGS) |
11 | 12 | ||
12 | install: jaildaemon | 13 | install: 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 |
19 | clean: | 20 | clean: |