2017-09-15 08:03:59 +05:30
|
|
|
MANDIR=/usr/share/man
|
|
|
|
SBINDIR=/usr/sbin
|
2017-09-30 13:10:10 +05:30
|
|
|
INIT=$(shell ps -p 1 --no-header | cut -d " " -f 15)
|
|
|
|
|
2017-09-15 08:03:59 +05:30
|
|
|
|
2017-09-15 07:59:03 +05:30
|
|
|
all:
|
2017-09-19 11:05:08 +05:30
|
|
|
chmod 755 make-ca 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
|
|
|
|
2017-09-30 13:10:10 +05:30
|
|
|
clean:
|
|
|
|
rm -f make-ca.8
|
|
|
|
chmod 0644 help2man
|
|
|
|
chmod 0644 make-ca
|
|
|
|
|
2017-09-25 07:49:25 +05:30
|
|
|
install: all
|
2017-09-15 08:03:59 +05:30
|
|
|
/usr/bin/install -vdm755 $(DESTDIR)$(SBINDIR)
|
2017-09-23 06:27:31 +05:30
|
|
|
/usr/bin/install -vdm755 $(DESTDIR)$(MANDIR)/man8
|
2017-09-19 11:05:08 +05:30
|
|
|
install -vm755 make-ca $(DESTDIR)$(SBINDIR)
|
2017-09-23 06:27:31 +05:30
|
|
|
install -vm644 make-ca.8 $(DESTDIR)$(MANDIR)/man8
|
2017-09-30 13:10:10 +05:30
|
|
|
if test "$(INIT)" == "systemd"; then \
|
|
|
|
install -vdm755 $(DESTDIR)/etc/systemd/system; \
|
|
|
|
install -vm644 systemd/* $(DESTDIR)/etc/systemd/system; \
|
|
|
|
fi
|
|
|
|
|
|
|
|
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
|
|
|
|
|