2017-09-15 08:03:59 +05:30
|
|
|
MANDIR=/usr/share/man
|
|
|
|
SBINDIR=/usr/sbin
|
2021-09-14 08:31:58 +05:30
|
|
|
ETCDIR=/etc/make-ca
|
2019-01-02 07:30:04 +05:30
|
|
|
LIBEXECDIR=/usr/libexec/make-ca
|
2017-09-30 13:10:10 +05:30
|
|
|
|
2018-12-02 04:37:13 +05:30
|
|
|
all: make_ca man
|
2017-09-15 08:03:59 +05:30
|
|
|
|
2018-12-02 04:37:13 +05:30
|
|
|
make_ca:
|
|
|
|
chmod 755 make-ca
|
|
|
|
|
|
|
|
man: make_ca
|
|
|
|
chmod 755 help2man
|
2017-09-23 06:27:31 +05:30
|
|
|
./help2man -s 8 -N ./make-ca -i include.h2m -o make-ca.8
|
2017-09-15 07:59:03 +05:30
|
|
|
|
2018-12-02 04:37:13 +05:30
|
|
|
clean: clean_make_ca clean_man
|
|
|
|
|
|
|
|
clean_make_ca:
|
|
|
|
chmod 0644 make-ca
|
|
|
|
|
|
|
|
clean_man:
|
2017-09-30 13:10:10 +05:30
|
|
|
rm -f make-ca.8
|
|
|
|
chmod 0644 help2man
|
|
|
|
|
2021-08-08 21:33:12 +05:30
|
|
|
install: all install_bin install_man install_systemd install_conf install_cs
|
2018-12-02 04:37:13 +05:30
|
|
|
|
|
|
|
install_bin:
|
2018-12-02 04:51:37 +05:30
|
|
|
install -vdm755 $(DESTDIR)$(SBINDIR)
|
2021-08-08 21:33:12 +05:30
|
|
|
install -vm755 make-ca $(DESTDIR)$(SBINDIR)
|
2019-01-02 07:30:04 +05:30
|
|
|
install -vdm755 $(DESTDIR)$(LIBEXECDIR)
|
2021-08-08 21:33:12 +05:30
|
|
|
install -vm700 copy-trust-modifications $(DESTDIR)$(LIBEXECDIR)
|
|
|
|
|
|
|
|
install_cs:
|
|
|
|
install -vdm755 $(DESTDIR)$(ETCDIR)
|
|
|
|
install -vm644 CS.txt $(DESTDIR)$(ETCDIR)
|
2018-12-02 04:37:13 +05:30
|
|
|
|
|
|
|
install_systemd:
|
2022-01-10 11:46:47 +05:30
|
|
|
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; \
|
2017-09-30 13:10:10 +05:30
|
|
|
fi
|
|
|
|
|
2020-02-05 12:15:09 +05:30
|
|
|
install_man: man
|
2018-12-02 04:51:37 +05:30
|
|
|
install -vdm755 $(DESTDIR)$(MANDIR)/man8
|
2018-12-02 04:37:13 +05:30
|
|
|
install -vm644 make-ca.8 $(DESTDIR)$(MANDIR)/man8
|
|
|
|
|
2018-12-02 04:51:37 +05:30
|
|
|
install_conf:
|
|
|
|
install -vdm755 $(DESTDIR)$(ETCDIR)
|
|
|
|
install -vm644 make-ca.conf.dist $(DESTDIR)$(ETCDIR)
|
|
|
|
|
2017-09-30 13:10:10 +05:30
|
|
|
uninstall:
|
|
|
|
rm -f $(DESTDIR)$(SBINDIR)/make-ca
|
|
|
|
rm -f $(DESTDIR)$(MANDIR)/man8/make-ca.8
|
2017-09-15 07:59:03 +05:30
|
|
|
|
|
|
|
.PHONY: all install
|
|
|
|
|