xref: /freebsd/contrib/sendmail/doc/op/Makefile (revision a90b9d0159070121c221b966469c3e36d912bf82)
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}
16ROFFNOSGR=	GROFF_NO_SGR=1 ${ROFFASCII}
17ROFFPS=		${ROFF_CMD} -Tps -mps ${MACROS}
18ULASCII=	${UL_CMD} -t dumb
19PS2PDF=		${PS2PDF_CMD}
20OPTXT_CMD=	${PIC} ${SRCS} | ${EQNASCII} | ${ROFFASCII} | ${ULASCII} 2>/dev/null
21OPTXTNS_CMD=	${PIC} ${SRCS} | ${EQNASCII} | ${ROFFNOSGR} | ${ULASCII}
22
23all: ${OBJS}
24
25op.ps: ${SRCS}
26	rm -f $@
27	${PIC} ${SRCS} | ${EQNPS} | ${ROFFPS} > $@
28	test -s $@ || ${ROFFPS} -p -e ${SRCS} > $@
29
30op.txt: ${SRCS}
31	rm -f $@
32	${OPTXT_CMD} > $@ || ${OPTXTNS_CMD} > $@
33
34op.pdf: op.ps
35	rm -f $@
36	${PS2PDF} op.ps op.pdf
37
38clean:
39	rm -f op.ps op.txt op.pdf
40
41install: ${OBJS}
42