blob: 1d34b71caeb3be76332a6aa57309661eb4cc26fe (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
--- Makefile 2005-02-11 10:35:59.000000000 +0000
+++ Makefile.mod 2006-10-21 08:05:48.134589906 +0100
@@ -1,5 +1,5 @@
INSTALL= install
-PREFIX= /usr/local
+PREFIX= $(DESTDIR)/usr
DISTFILES= AUTHOR COPYING INSTALL README Makefile config user.auth.example snowbox snowbox.8
VERSION= 0.9.4
@@ -9,21 +9,15 @@
@echo "Type \"make install\" to install Snowbox."
install:
- if [ ! -d "$(PREFIX)/sbin" ]; then \
- mkdir -p $(PREFIX)/sbin; \
- fi
+ mkdir -p $(PREFIX)/sbin
install snowbox $(PREFIX)/sbin
- if [ ! -d "$(PREFIX)/man/man8" ]; then \
- mkdir -p $(PREFIX)/man/man8; \
- fi
+ mkdir -p $(PREFIX)/man/man8
install -m 0644 snowbox.8 $(PREFIX)/man/man8
- if [ ! -d "/etc/snowbox" ]; then \
- mkdir -p /etc/snowbox; \
- install -m 0600 config /etc/snowbox; \
- install -m 0600 user.auth.example /etc/snowbox; \
- fi
+ mkdir -p $(DESTDIR)/etc/snowbox
+ install -m 0600 config $(DESTDIR)/etc/snowbox
+ install -m 0600 user.auth.example $(DESTDIR)/etc/snowbox
dist:
mkdir $(DISTDIR)
|