Merge branch 'cleanups'
[unleashed.git] / bin / mandoc / Makefile
bloba47bb7ca1673b3583318f985914dd14a5bea5070
1 PROG= mandoc
3 SRCS= mandoc_aux.c mandoc_ohash.c mandoc.c mandoc_xr.c \
4 chars.c preconv.c read.c \
5 roff.c roff_validate.c tbl.c tbl_opts.c tbl_layout.c tbl_data.c eqn.c
6 SRCS+= mdoc_macro.c mdoc.c \
7 mdoc_argv.c mdoc_state.c mdoc_validate.c att.c msec.c st.c
8 SRCS+= man_macro.c man.c man_validate.c
9 SRCS+= main.c out.c tag.c tree.c
10 SRCS+= term.c term_tab.c term_ascii.c term_ps.c
11 SRCS+= roff_term.c mdoc_term.c man_term.c eqn_term.c tbl_term.c
12 SRCS+= mdoc_man.c
13 SRCS+= html.c roff_html.c mdoc_html.c man_html.c eqn_html.c tbl_html.c
14 SRCS+= mdoc_markdown.c
15 SRCS+= dbm_map.c dbm.c dba_write.c dba_array.c dba.c dba_read.c
16 SRCS+= manpath.c mandocdb.c mansearch.c
18 SRCS+= lib.c compat_ohash.c
20 LDADD+= -lz
21 CFLAGS+= -std=gnu99
23 MAN= apropos.1 man.1 mandoc.1 man.conf.5 mandoc.db.5 eqn.7 man.7 \
24 mandoc_char.7 mdoc.7 roff.7 tbl.7 makewhatis.8
25 LINKS= ${BINDIR}/mandoc ${BINDIR}/apropos \
26 ${BINDIR}/mandoc ${BINDIR}/man \
27 ${BINDIR}/mandoc ${BINDIR}/whatis \
28 ${BINDIR}/mandoc /usr/sbin/makewhatis
30 afterinstall:
31 @mkdir -p ${DESTDIR}/lib/svc/manifest/system
32 ${INSTALL} -m 0444 ${.CURDIR}/makewhatis.xml ${DESTDIR}/lib/svc/manifest/system
34 .include <prog.mk>