diff options
-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: |