]> git.sthu.org Git - smailq.git/blob - Makefile
Use update-alternative for Debian
[smailq.git] / Makefile
1 PREFIX ?= /usr
2 BIN_SUFFIX ?=
3
4 # Where the script binary should go
5 BINPATH = $(DESTDIR)$(PREFIX)/bin
6 SBINPATH = $(DESTDIR)$(PREFIX)/sbin
7 MANPATH = $(DESTDIR)$(PREFIX)/share/man/man1
8 SHAREDIR = $(DESTDIR)$(PREFIX)/share/smailq
9 CONFFILE = $(SHAREDIR)/smailq.conf.sample
10 ######################################################################
11
12 all: manpage
13
14 install: all
15 mkdir -p $(BINPATH) $(SBINPATH) $(MANPATH) $(SHAREDIR)
16 install -m 0755 smailq $(BINPATH)/smailq
17 install -m 0755 mailq $(BINPATH)/mailq$(BIN_SUFFIX)
18 install -m 0755 sendmail $(SBINPATH)/sendmail$(BIN_SUFFIX)
19 install -m 0644 smailq.conf $(CONFFILE)
20 install -m 0644 smailq.1 $(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