7888 installboot: print version info of the file
[unleashed.git] / bin / mandoc / Makefile
blob25d57c737207f1153b408476f5bd5e659dbb8c7f
1 PROG= mandoc
3 SRCS= mandoc.c mandoc_aux.c mandoc_ohash.c preconv.c read.c \
4 roff.c tbl.c tbl_opts.c tbl_layout.c tbl_data.c eqn.c
5 SRCS+= mdoc_macro.c mdoc.c mdoc_hash.c \
6 mdoc_argv.c mdoc_state.c mdoc_validate.c att.c msec.c st.c
7 SRCS+= man_macro.c man.c man_hash.c man_validate.c
8 SRCS+= main.c mdoc_term.c tag.c chars.c term.c tree.c man_term.c eqn_term.c
9 SRCS+= mdoc_man.c
10 SRCS+= html.c mdoc_html.c man_html.c out.c eqn_html.c
11 SRCS+= term_ps.c term_ascii.c tbl_term.c tbl_html.c
12 SRCS+= dbm_map.c dbm.c dba_write.c dba_array.c dba.c dba_read.c
13 SRCS+= manpath.c mandocdb.c mansearch.c
15 SRCS+= lib.c compat_ohash.c compat_strtonum.c
17 LDADD+= -lz
18 CPPFLAGS+= -DOSNAME='"unleashed"'
19 CFLAGS+= -std=gnu99
21 # FIXME shouldn't need these hacks
22 CPPFLAGS+= -D_TS_ERRNO -I/usr/include
24 MAN= apropos.1 man.1 mandoc.1 man.conf.5 mandoc.db.5 eqn.7 man.7 \
25 mandoc_char.7 mdoc.7 roff.7 tbl.7 makewhatis.8
26 LINKS= ${BINDIR}/mandoc ${BINDIR}/apropos \
27 ${BINDIR}/mandoc ${BINDIR}/man \
28 ${BINDIR}/mandoc ${BINDIR}/whatis \
29 ${BINDIR}/mandoc /usr/sbin/makewhatis
31 afterinstall:
32 @mkdir -p ${DESTDIR}/lib/svc/manifest/system
33 ${INSTALL} -m 0444 ${.CURDIR}/makewhatis.xml ${DESTDIR}/lib/svc/manifest/system
35 .include <prog.mk>