version 1.420, 2014/06/20 02:55:49 |
version 1.423, 2014/07/12 18:32:47 |
Line 66 INSTALL_MAN = $(INSTALL_DATA) |
|
Line 66 INSTALL_MAN = $(INSTALL_DATA) |
|
DBLIB = -L/usr/local/lib -lsqlite3 |
DBLIB = -L/usr/local/lib -lsqlite3 |
DBBIN = makewhatis manpage apropos |
DBBIN = makewhatis manpage apropos |
|
|
|
# To build man.cgi, copy cgi.h.example to cgi.h, edit it, and |
|
# either enable the following line or run "make man.cgi" by hand. |
|
#DBBIN += man.cgi |
|
|
# OpenBSD has the ohash functions in libutil. |
# OpenBSD has the ohash functions in libutil. |
# Comment the following line if your system doesn't. |
# Comment the following line if your system doesn't. |
DBLIB += -lutil |
DBLIB += -lutil |
Line 133 SRCS = LICENSE \ |
|
Line 137 SRCS = LICENSE \ |
|
makewhatis.8 \ |
makewhatis.8 \ |
man.7 \ |
man.7 \ |
man.c \ |
man.c \ |
|
man.cgi.8 \ |
man-cgi.css \ |
man-cgi.css \ |
man.h \ |
man.h \ |
man_hash.c \ |
man_hash.c \ |
|
|
roff.o: predefs.in |
roff.o: predefs.in |
st.o: st.in |
st.o: st.in |
vol.o: vol.in |
vol.o: vol.in |
|
cgi.o: cgi.h |
|
|
$(LIBMAN_OBJS): libman.h |
$(LIBMAN_OBJS): libman.h |
$(LIBMDOC_OBJS): libmdoc.h |
$(LIBMDOC_OBJS): libmdoc.h |
Line 291 $(PRECONV_OBJS): config.h |
|
Line 297 $(PRECONV_OBJS): config.h |
|
APROPOS_OBJS = apropos.o mansearch.o mansearch_const.o manpath.o |
APROPOS_OBJS = apropos.o mansearch.o mansearch_const.o manpath.o |
$(APROPOS_OBJS): config.h mandoc.h mandoc_aux.h manpath.h mansearch.h |
$(APROPOS_OBJS): config.h mandoc.h mandoc_aux.h manpath.h mansearch.h |
|
|
|
CGI_OBJS = $(MANDOC_HTML_OBJS) \ |
|
cgi.o \ |
|
mansearch.o \ |
|
mansearch_const.o \ |
|
out.o |
|
$(CGI_OBJS): main.h out.h config.h mandoc.h mandoc_aux.h \ |
|
manpath.h mansearch.h |
|
|
MANPAGE_OBJS = manpage.o mansearch.o mansearch_const.o manpath.o |
MANPAGE_OBJS = manpage.o mansearch.o mansearch_const.o manpath.o |
$(MANPAGE_OBJS): config.h mandoc.h mandoc_aux.h manpath.h mansearch.h |
$(MANPAGE_OBJS): config.h mandoc.h mandoc_aux.h manpath.h mansearch.h |
|
|
Line 312 WWW_MANS = apropos.1.html \ |
|
Line 326 WWW_MANS = apropos.1.html \ |
|
roff.7.html \ |
roff.7.html \ |
tbl.7.html \ |
tbl.7.html \ |
makewhatis.8.html \ |
makewhatis.8.html \ |
|
man.cgi.8.html \ |
man.h.html \ |
man.h.html \ |
mandoc.h.html \ |
mandoc.h.html \ |
mandoc_aux.h.html \ |
mandoc_aux.h.html \ |
|
|
rm -f apropos $(APROPOS_OBJS) |
rm -f apropos $(APROPOS_OBJS) |
rm -f makewhatis $(MAKEWHATIS_OBJS) |
rm -f makewhatis $(MAKEWHATIS_OBJS) |
rm -f preconv $(PRECONV_OBJS) |
rm -f preconv $(PRECONV_OBJS) |
|
rm -f man.cgi $(CGI_OBJS) |
rm -f manpage $(MANPAGE_OBJS) |
rm -f manpage $(MANPAGE_OBJS) |
rm -f demandoc $(DEMANDOC_OBJS) |
rm -f demandoc $(DEMANDOC_OBJS) |
rm -f mandoc $(MANDOC_OBJS) |
rm -f mandoc $(MANDOC_OBJS) |
|
|
installcgi: all |
installcgi: all |
mkdir -p $(DESTDIR)$(CGIBINDIR) |
mkdir -p $(DESTDIR)$(CGIBINDIR) |
mkdir -p $(DESTDIR)$(HTDOCDIR) |
mkdir -p $(DESTDIR)$(HTDOCDIR) |
#$(INSTALL_PROGRAM) man.cgi $(DESTDIR)$(CGIBINDIR) |
$(INSTALL_PROGRAM) man.cgi $(DESTDIR)$(CGIBINDIR) |
$(INSTALL_DATA) example.style.css $(DESTDIR)$(HTDOCDIR)/man.css |
$(INSTALL_DATA) example.style.css $(DESTDIR)$(HTDOCDIR)/man.css |
$(INSTALL_DATA) man-cgi.css $(DESTDIR)$(HTDOCDIR) |
$(INSTALL_DATA) man-cgi.css $(DESTDIR)$(HTDOCDIR) |
|
|
Line 390 manpage: $(MANPAGE_OBJS) libmandoc.a |
|
Line 406 manpage: $(MANPAGE_OBJS) libmandoc.a |
|
|
|
apropos: $(APROPOS_OBJS) libmandoc.a |
apropos: $(APROPOS_OBJS) libmandoc.a |
$(CC) $(LDFLAGS) -o $@ $(APROPOS_OBJS) libmandoc.a $(DBLIB) |
$(CC) $(LDFLAGS) -o $@ $(APROPOS_OBJS) libmandoc.a $(DBLIB) |
|
|
|
man.cgi: $(CGI_OBJS) libmandoc.a |
|
$(CC) $(LDFLAGS) $(STATIC) -o $@ $(CGI_OBJS) libmandoc.a $(DBLIB) |
|
|
demandoc: $(DEMANDOC_OBJS) libmandoc.a |
demandoc: $(DEMANDOC_OBJS) libmandoc.a |
$(CC) $(LDFLAGS) -o $@ $(DEMANDOC_OBJS) libmandoc.a |
$(CC) $(LDFLAGS) -o $@ $(DEMANDOC_OBJS) libmandoc.a |