groff: Fixup after new version import
[dragonfly.git] / gnu / usr.bin / groff / tmac / Makefile
CommitLineData
dbf63eef 1# $FreeBSD: src/gnu/usr.bin/groff/tmac/Makefile,v 1.42 2003/09/08 17:46:33 ru Exp $
cfaf64ca 2# $DragonFly: src/gnu/usr.bin/groff/tmac/Makefile,v 1.4 2005/09/09 14:11:04 asmodai Exp $
dbf63eef
JR
3
4.include "../Makefile.inc"
984263bc
MD
5
6TMACOWN?= ${BINOWN}
7TMACGRP?= ${BINGRP}
8TMACMODE?= ${NOBINMODE}
9TMACDIR?= ${SHAREDIR}/tmac
10MDOCDIR?= ${TMACDIR}/mdoc
11
12MAN= groff_ms.7 groff_man.7 groff_me.7 groff_mdoc.7
13MAN+= groff_trace.7 groff_www.7
14MLINKS= groff_ms.7 ms.7
15MLINKS+= groff_man.7 man.7
16MLINKS+= groff_me.7 me.7
17MLINKS+= groff_mdoc.7 mdoc.7 groff_mdoc.7 mdoc.samples.7
18
dbf63eef
JR
19PATCHES!= echo ${.CURDIR}/patches/*.patch
20CONTRIBDIR= ${DIST_DIR}
21
22SRCS= ${PATCHES}
23CLEANFILES= ${MAN} ${MDOCFILES:S/$/-s/} ${STRIPFILES:S/$/-s/} ${SPECIALFILES:S/$/-s/} ${NORMALFILES:S/$/-s/}
984263bc 24
7948e49e
JL
25NORMALFILES= man.tmac mandoc.tmac andoc.tmac an-old.tmac an-ext.tmac \
26 ms.tmac \
27 me.tmac \
28 mdoc.tmac \
29 pic.tmac \
30 a4.tmac papersize.tmac \
31 62bit.tmac \
32 ec.tmac \
33 safer.tmac \
34 trace.tmac \
35 ps.tmac psold.tmac pspic.tmac psatk.tmac \
36 dvi.tmac \
37 tty.tmac tty-char.tmac \
38 latin1.tmac latin2.tmac latin5.tmac latin9.tmac cp1047.tmac \
39 unicode.tmac \
40 X.tmac Xps.tmac \
41 lj4.tmac \
42 lbp.tmac \
43 html.tmac html-end.tmac \
44 devtag.tmac \
45 europs.tmac \
46 composite.tmac \
47 eqnrc \
48 troffrc troffrc-end \
49 trans.tmac \
50 hyphen.us hyphenex.us \
51 fr.tmac hyphen.fr \
52 sv.tmac hyphen.sv \
53 de.tmac den.tmac hyphen.det hyphen.den hyphenex.det \
54 cs.tmac hyphen.cs hyphenex.cs
55
56SPECIALFILES= an.tmac s.tmac www.tmac
57STRIPFILES= e.tmac doc.tmac doc-old.tmac mdoc.local
984263bc 58MDOCFILES= doc-common doc-ditroff doc-nroff doc-syms \
dbf63eef 59 fr.ISO8859-1 ru.KOI8-R
984263bc 60
dbf63eef 61all: ${MDOCFILES:S/$/-s/} ${STRIPFILES:S/$/-s/} ${SPECIALFILES:S/$/-s/} ${NORMALFILES:S/$/-s/}
984263bc
MD
62
63.for f in ${MDOCFILES} ${STRIPFILES}
64$f-s: $f
65 sed -f ${DIST_DIR}/strip.sed ${.ALLSRC} > ${.TARGET}
66.endfor
67
68.for f in ${SPECIALFILES}
69$f-s: $f
70 sed -e "s;@TMAC_AN_PREFIX@;${tmac_an_prefix};g" \
71 -e "s;@TMAC_S_PREFIX@;${tmac_s_prefix};g" \
dbf63eef 72 -e "s;@PNMTOPS_NOSETPAGE@;pnmtops;g" \
984263bc
MD
73 ${.ALLSRC} > ${.TARGET}
74.endfor
75
dbf63eef
JR
76.for f in ${NORMALFILES}
77$f-s: $f
78 cp ${.ALLSRC} ${.TARGET}
79.endfor
80
984263bc 81beforeinstall:
984263bc
MD
82 cd ${.CURDIR}; \
83 ${INSTALL} -o ${TMACOWN} -g ${TMACGRP} -m ${TMACMODE} \
dbf63eef 84 koi8-r.tmac hyphen.ru ${DESTDIR}${TMACDIR}
984263bc 85 cd ${.OBJDIR}
dbf63eef 86.for f in ${STRIPFILES} ${SPECIALFILES} ${NORMALFILES}
984263bc
MD
87 ${INSTALL} -o ${TMACOWN} -g ${TMACGRP} -m ${TMACMODE} \
88 $f-s ${DESTDIR}${TMACDIR}/$f
89.endfor
90.for f in ${MDOCFILES}
91 ${INSTALL} -o ${TMACOWN} -g ${TMACGRP} -m ${TMACMODE} \
92 $f-s ${DESTDIR}${MDOCDIR}/$f
93.endfor
94.if !exists(${DESTDIR}${TMACDIR}/man.local)
95 ${INSTALL} -o ${TMACOWN} -g ${TMACGRP} -m ${TMACMODE} \
96 ${DIST_DIR}/man.local ${DESTDIR}${TMACDIR}
97.endif
98
99.include <bsd.prog.mk>