]> git.sthu.org Git - smailq.git/blob - Makefile
Add systemd unit and timer files
[smailq.git] / Makefile
1 PREFIX=/usr
2 # Where the script binary should go
3 BINPATH = $(PREFIX)/bin
4 SBINPATH = $(PREFIX)/sbin
5 MANPATH = $(PREFIX)/share/man
6 SHAREDIR = $(PREFIX)/share/smailq
7 CONFFILE = $(SHAREDIR)/smailq.conf.sample
8
9 ######################################################################
10
11 all: manpage
12
13 install: all
14 install -m 0755 smailq $(BINPATH)/smailq
15 install -m 0755 mailq $(BINPATH)/mailq
16 install -m 0755 sendmail $(SBINPATH)/sendmail
17 mkdir -p $(SHAREDIR)
18 install -m 0644 smailq.conf $(CONFFILE)
19 install -m 0644 smailq.1 $(MANPATH)/man1/smailq.1
20 bzip2 -f $(MANPATH)/man1/smailq.1
21
22 manpage: smailq.1
23
24 smailq.1: smailq.docbook
25 docbook2man.pl $<
26 #groff -t -e -mandoc -Tps smailq.1 > smailq.ps
27
28