-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
47 lines (39 loc) · 1017 Bytes
/
Makefile
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
37
38
39
40
41
42
43
44
45
46
47
NAME = inverse-pki
VERSION = 1.00
PREFIX = /usr/local/pf/pki
UID = -o nobody
GID = -g nogroup
DIRS = inverse pki conf
INSTALL = /usr/bin/install -c -D -m0644
TAR = $(NAME)-$(VERSION).tar
GZ = $(TAR).gz
BZ2 = $(TAR).bz2
dist: clean $(GZ)
$(TAR):
for j in `find . ! -type l ! -name '*~' ! -name '#*' ! -name 'db' ! -path '*/.git/*' ! -path '*/.gitignore'`; do \
if [ -f $$j ]; then \
$(INSTALL) $$j $(NAME)-$(VERSION)/$$j; \
fi; \
done
tar cf $(TAR) $(NAME)-$(VERSION)
rm -rf $(NAME)-$(VERSION)
$(GZ): $(TAR)
gzip -f $(TAR)
bz2: clean $(BZ2)
$(BZ2): $(TAR)
bzip2 $(TAR)
clean:
rm -rf $(GZ) $(TAR) $(BZ2) $(NAME)-$(VERSION)
install:
for i in '$(DIRS)'; do \
for j in `find $$i`; do \
if [ -f $$j ]; then \
$(INSTALL) $(UID) $(GID) $$j $(DESTDIR)$(PREFIX)/$$j; \
fi; \
done \
done
install -m0744 manage.py $(DESTDIR)$(PREFIX)/manage.py; \
install -d -m2770 $(DESTDIR)$(PREFIX)/logs; \
install -m0600 debian/httpd.conf.debian $(DESTDIR)$(PREFIX)/conf/httpd.conf
clean:
rm -fr db*