-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathMakefile
65 lines (49 loc) · 1.63 KB
/
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
MANDIR=/usr/share/man
SBINDIR=/usr/sbin
ETCDIR=/etc/make-ca
LIBEXECDIR=/usr/libexec/make-ca
all: make_ca man
make_ca:
chmod 755 make-ca
man: make_ca
chmod 755 help2man
LC_ALL=C ./help2man -s 8 -N ./make-ca -i include.h2m -o make-ca.8
clean: clean_make_ca clean_man
clean_make_ca:
chmod 0644 make-ca
clean_man:
rm -f make-ca.8
chmod 0644 help2man
install: all install_bin install_man install_systemd install_conf \
install_cs install_mozilla_ca_root
install_bin:
install -vdm755 $(DESTDIR)$(SBINDIR)
install -vm755 make-ca $(DESTDIR)$(SBINDIR)
install -vdm755 $(DESTDIR)$(LIBEXECDIR)
install -vm700 copy-trust-modifications $(DESTDIR)$(LIBEXECDIR)
install_cs:
install -vdm755 $(DESTDIR)$(ETCDIR)
install -vm644 CS.txt $(DESTDIR)$(ETCDIR)
install_systemd:
if test -x /usr/sbin/systemctl -o -x /usr/bin/systemctl; then \
if test -d /usr/lib/systemd/system; then \
install -vdm755 ${DESTDIR}/usr/lib/systemd/system; \
install -vm644 systemd/* $(DESTDIR)/usr/lib/systemd/system; \
elif test -d /lib/systemd/system; then \
install -vdm755 ${DESTDIR}/lib/systemd/system; \
install -vm644 systemd/* ${DESTDIR}/lib/systemd/system; \
fi; \
fi
install_man: man
install -vdm755 $(DESTDIR)$(MANDIR)/man8
install -vm644 make-ca.8 $(DESTDIR)$(MANDIR)/man8
install_conf:
install -vdm755 $(DESTDIR)$(ETCDIR)
install -vm644 make-ca.conf.dist $(DESTDIR)$(ETCDIR)
install_mozilla_ca_root:
install -vdm755 $(DESTDIR)$(ETCDIR)
install -vm644 mozilla-ca-root.pem $(DESTDIR)$(ETCDIR)
uninstall:
rm -f $(DESTDIR)$(SBINDIR)/make-ca
rm -f $(DESTDIR)$(MANDIR)/man8/make-ca.8
.PHONY: all install