make-ca/Makefile

31 lines
733 B
Makefile
Raw Normal View History

2017-09-14 21:33:59 -05:00
MANDIR=/usr/share/man
SBINDIR=/usr/sbin
INIT=$(shell ps -p 1 --no-header | cut -d " " -f 15)
2017-09-14 21:33:59 -05:00
2017-09-14 21:29:03 -05:00
all:
2017-09-19 00:35:08 -05:00
chmod 755 make-ca help2man
./help2man -s 8 -N ./make-ca -i include.h2m -o make-ca.8
2017-09-14 21:29:03 -05:00
clean:
rm -f make-ca.8
chmod 0644 help2man
chmod 0644 make-ca
2017-09-24 21:19:25 -05:00
install: all
2017-09-14 21:33:59 -05:00
/usr/bin/install -vdm755 $(DESTDIR)$(SBINDIR)
/usr/bin/install -vdm755 $(DESTDIR)$(MANDIR)/man8
2017-09-19 00:35:08 -05:00
install -vm755 make-ca $(DESTDIR)$(SBINDIR)
install -vm644 make-ca.8 $(DESTDIR)$(MANDIR)/man8
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-14 21:29:03 -05:00
.PHONY: all install