From 9ff343a0f1e2bfefb7537ceb0f01f0f8da37dd66 Mon Sep 17 00:00:00 2001 From: Jason McIntyre Date: Thu, 14 Mar 2013 15:18:20 +0000 Subject: allow groff users to build these docs; from J??r??mie Courr??ges-Anglas ok millert --- gnu/usr.sbin/sendmail/doc/op/Makefile | 44 +++++++++++++++++++++++++++-------- 1 file changed, 34 insertions(+), 10 deletions(-) (limited to 'gnu/usr.sbin') diff --git a/gnu/usr.sbin/sendmail/doc/op/Makefile b/gnu/usr.sbin/sendmail/doc/op/Makefile index 10512e48fc0..d2a42a2e90f 100644 --- a/gnu/usr.sbin/sendmail/doc/op/Makefile +++ b/gnu/usr.sbin/sendmail/doc/op/Makefile @@ -1,17 +1,41 @@ +# $OpenBSD: Makefile,v 1.5 2013/03/14 15:18:19 jmc Exp $ # $Sendmail: Makefile,v 8.16 2006/01/05 22:03:31 ca Exp $ -DIR= smm/08.sendmailop -SRCS= op.me -MACROS= -me +SRCS= op.me +OBJS= op.ps +MACROS= -me +ROFF_CMD= groff +PIC_CMD= pic +EQN_CMD= eqn +UL_CMD= ul +PS2PDF_CMD= ps2pdf +PIC= ${PIC_CMD} -C +EQNASCII= ${EQN_CMD} -C -Tascii +EQNPS= ${EQN_CMD} -C -Tps +ROFFASCII= ${ROFF_CMD} -Tascii ${MACROS} +ROFFPS= ${ROFF_CMD} -Tps -mps ${MACROS} +ULASCII= ${UL_CMD} -t dumb +PS2PDF= ${PS2PDF_CMD} -all: op.ps +all: ${OBJS} op.ps: ${SRCS} - rm -f ${.TARGET} - ${PIC} ${SRCS} | ${EQN} | ${ROFF} > ${.TARGET} + rm -f $@ + ${PIC} ${SRCS} | ${EQNPS} | ${ROFFPS} > $@ + test -s $@ || ${ROFFPS} -p -e ${SRCS} > $@ -paper.txt: ${SRCS} - rm -f ${.TARGET} - ${PIC} ${SRCS} | ${EQN} -Tascii | ${ROFF} -Tascii > ${.TARGET} +op.txt: ${SRCS} + rm -f $@ + @echo "Note: see README file in case of errors." + ${PIC} ${SRCS} | ${EQNASCII} | \ + env GROFF_NO_SGR=NoThanks ${ROFFASCII} | \ + ${ULASCII} > $@ -.include +op.pdf: op.ps + rm -f $@ + ${PS2PDF} op.ps op.pdf + +clean: + rm -f op.ps op.txt op.pdf + +install: ${OBJS} -- cgit v1.2.3