xref: /freebsd/contrib/sendmail/doc/op/Makefile (revision 3078531de10dcae44b253a35125c949ff4235284)
1#	$Id: Makefile,v 8.16 2006-01-05 22:03:31 ca Exp $
2
3DIR=		smm/08.sendmailop
4SRCS=		op.me
5OBJS=		op.ps
6MACROS=		-me
7ROFF_CMD=	groff
8PIC_CMD=	pic
9EQN_CMD=	eqn
10UL_CMD=		ul
11PS2PDF_CMD=	ps2pdf
12PIC=		${PIC_CMD} -C
13EQNASCII=	${EQN_CMD} -C -Tascii
14EQNPS=		${EQN_CMD} -C -Tps
15ROFFASCII=	${ROFF_CMD} -Tascii ${MACROS}
16ROFFPS=		${ROFF_CMD} -Tps -mps ${MACROS}
17ULASCII=	${UL_CMD} -t dumb
18PS2PDF=		${PS2PDF_CMD}
19
20all: ${OBJS}
21
22op.ps: ${SRCS}
23	rm -f $@
24	${PIC} ${SRCS} | ${EQNPS} | ${ROFFPS} > $@
25	test -s $@ || ${ROFFPS} -p -e ${SRCS} > $@
26
27op.txt: ${SRCS}
28	rm -f $@
29	@echo "Note: see README file in case of errors."
30	${PIC} ${SRCS} | ${EQNASCII} | ${ROFFASCII} | ${ULASCII} > $@
31
32op.pdf: op.ps
33	rm -f $@
34	${PS2PDF} op.ps op.pdf
35
36clean:
37	rm -f op.ps op.txt op.pdf
38
39install: ${OBJS}
40