blob: fad30f9d2a07c62702fc77e5e9162e1d98b590b3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
# $OpenBSD: Makefile,v 1.82 2014/08/27 00:06:08 schwarze Exp $
.include <bsd.own.mk>
CFLAGS += -DVERSION=\"1.13.1\"
CFLAGS += -W -Wall -Wstrict-prototypes -Wno-unused-parameter
DPADD += ${LIBUTIL}
LDADD += -lsqlite3 -lutil
SRCS= mandoc.c mandoc_aux.c read.c \
roff.c tbl.c tbl_opts.c tbl_layout.c tbl_data.c eqn.c
SRCS+= mdoc_macro.c mdoc.c mdoc_hash.c \
mdoc_argv.c mdoc_validate.c lib.c att.c \
arch.c vol.c msec.c st.c
SRCS+= man_macro.c man.c man_hash.c man_validate.c
SRCS+= main.c mdoc_term.c chars.c term.c tree.c man_term.c eqn_term.c
SRCS+= mdoc_man.c
SRCS+= html.c mdoc_html.c man_html.c out.c eqn_html.c
SRCS+= term_ps.c term_ascii.c tbl_term.c tbl_html.c
SRCS+= manpath.c mandocdb.c mansearch_const.c mansearch.c
PROG= mandoc
LINKS = ${BINDIR}/mandoc ${BINDIR}/apropos \
${BINDIR}/mandoc ${BINDIR}/whatis \
${BINDIR}/mandoc /usr/sbin/makewhatis \
${BINDIR}/mandoc /usr/libexec/makewhatis
MAN = apropos.1 mandoc.1 whatis.1 makewhatis.8
CLEANFILES += man.cgi cgi.o man.cgi.8.manlint
# ----------------------------------------------------------------------
# Variables and targets to build and install man.cgi(8),
# not used during make build and make release.
# To configure, run: cp cgi.h.example cgi.h; vi cgi.h
# To build, run: make man.cgi
# To install, run: sudo make installcgi
# After that, read: man man.cgi.8
LIBMDOC_OBJS = mdoc_argv.o mdoc_hash.o mdoc_macro.o mdoc_validate.o \
mdoc.o arch.o att.o lib.o st.o vol.o
LIBMAN_OBJS = man.o man_hash.o man_macro.o man_validate.o
LIBROFF_OBJS = roff.o eqn.o tbl.o tbl_data.o tbl_layout.o tbl_opts.o
LIBMANDOC_OBJS = ${LIBMDOC_OBJS} ${LIBMAN_OBJS} ${LIBROFF_OBJS} \
mandoc.o mandoc_aux.o chars.o msec.o read.o
HTML_OBJS = html.o mdoc_html.o man_html.o tbl_html.o eqn_html.o out.o
CGI_OBJS = ${LIBMANDOC_OBJS} ${HTML_OBJS} \
mansearch.o mansearch_const.o cgi.o
cgi.o: main.h mandoc.h mandoc_aux.h manpath.h mansearch.h cgi.h
man.cgi: ${CGI_OBJS}
${CC} ${LDFLAGS} -static -o ${.TARGET} ${CGI_OBJS} ${LDADD}
installcgi: man.cgi
${INSTALL} -d -o root -g wheel -m 755 ${DESTDIR}/var/www/cgi-bin
${INSTALL} ${INSTALL_COPY} -S ${INSTALL_STRIP} \
-o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
man.cgi ${DESTDIR}/var/www/cgi-bin/man.cgi
${INSTALL} -d -o root -g wheel -m 755 ${DESTDIR}/var/www/man/mandoc/man1
${INSTALL} -d -o root -g wheel -m 755 ${DESTDIR}/var/www/man/mandoc/man8
${INSTALL} ${INSTALL_COPY} -o ${MANOWN} -g ${MANGRP} -m ${MANMODE} \
${.CURDIR}/apropos.1 ${DESTDIR}/var/www/man/mandoc/man1/apropos.1
${INSTALL} ${INSTALL_COPY} -o ${MANOWN} -g ${MANGRP} -m ${MANMODE} \
${.CURDIR}/man.cgi.8 ${DESTDIR}/var/www/man/mandoc/man8/man.cgi.8
.include <bsd.prog.mk>
|