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