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