version 1.395.2.28, 2014/08/12 21:37:42 |
version 1.395.2.29, 2014/08/14 20:43:22 |
Line 73 BUILD_TARGETS += db-build |
|
Line 73 BUILD_TARGETS += db-build |
|
# |
# |
#CFLAGS += -DUSE_MANPATH |
#CFLAGS += -DUSE_MANPATH |
|
|
WWWPREFIX = /var/www |
|
HTDOCDIR = $(WWWPREFIX)/htdocs |
|
|
|
# === END OF USER SETTINGS ============================================= |
# === END OF USER SETTINGS ============================================= |
|
|
INSTALL_TARGETS = $(BUILD_TARGETS:-build=-install) |
INSTALL_TARGETS = $(BUILD_TARGETS:-build=-install) |
Line 150 SRCS = apropos.c \ |
|
Line 147 SRCS = apropos.c \ |
|
vol.c \ |
vol.c \ |
$(TESTSRCS) |
$(TESTSRCS) |
|
|
DISTFILES = LICENSE \ |
DISTFILES = INSTALL \ |
|
LICENSE \ |
Makefile \ |
Makefile \ |
Makefile.depend \ |
Makefile.depend \ |
NEWS \ |
NEWS \ |
Line 275 APROPOS_OBJS = apropos.o apropos_db.o manpath.o |
|
Line 273 APROPOS_OBJS = apropos.o apropos_db.o manpath.o |
|
|
|
DEMANDOC_OBJS = demandoc.o |
DEMANDOC_OBJS = demandoc.o |
|
|
WWW_MANS = apropos.1.html \ |
|
demandoc.1.html \ |
|
mandoc.1.html \ |
|
preconv.1.html \ |
|
whatis.1.html \ |
|
mandoc.3.html \ |
|
mandoc_escape.3.html \ |
|
mandoc_html.3.html \ |
|
mandoc_malloc.3.html \ |
|
mchars_alloc.3.html \ |
|
tbl.3.html \ |
|
eqn.7.html \ |
|
man.7.html \ |
|
mandoc_char.7.html \ |
|
mdoc.7.html \ |
|
roff.7.html \ |
|
tbl.7.html \ |
|
mandocdb.8.html \ |
|
man.h.html \ |
|
mandoc.h.html \ |
|
mandoc_aux.h.html \ |
|
manpath.h.html \ |
|
mdoc.h.html |
|
|
|
WWW_OBJS = mdocml.tar.gz \ |
WWW_OBJS = mdocml.tar.gz \ |
mdocml.sha256 |
mdocml.sha256 |
|
|
Line 312 db-build: $(DBBIN) |
|
Line 286 db-build: $(DBBIN) |
|
|
|
install: base-install $(INSTALL_TARGETS) |
install: base-install $(INSTALL_TARGETS) |
|
|
www: $(WWW_OBJS) $(WWW_MANS) |
www: $(WWW_OBJS) |
|
|
include Makefile.depend |
include Makefile.depend |
|
|
|
|
rm -f demandoc $(DEMANDOC_OBJS) |
rm -f demandoc $(DEMANDOC_OBJS) |
rm -f mandoc $(MANDOC_OBJS) |
rm -f mandoc $(MANDOC_OBJS) |
rm -f config.h config.log $(COMPAT_OBJS) |
rm -f config.h config.log $(COMPAT_OBJS) |
rm -f $(WWW_MANS) $(WWW_OBJS) |
rm -f $(WWW_OBJS) |
rm -rf *.dSYM |
rm -rf *.dSYM |
|
|
base-install: base-build |
base-install: base-build |
Line 357 db-install: db-build |
|
Line 331 db-install: db-build |
|
$(INSTALL_MAN) apropos.1 whatis.1 $(DESTDIR)$(MANDIR)/man1 |
$(INSTALL_MAN) apropos.1 whatis.1 $(DESTDIR)$(MANDIR)/man1 |
$(INSTALL_MAN) mandocdb.8 $(DESTDIR)$(MANDIR)/man8 |
$(INSTALL_MAN) mandocdb.8 $(DESTDIR)$(MANDIR)/man8 |
|
|
www-install: www |
|
mkdir -p $(DESTDIR)$(HTDOCDIR)/snapshots |
|
$(INSTALL_DATA) $(WWW_MANS) style.css $(DESTDIR)$(HTDOCDIR) |
|
$(INSTALL_DATA) $(WWW_OBJS) $(DESTDIR)$(HTDOCDIR)/snapshots |
|
$(INSTALL_DATA) mdocml.tar.gz \ |
|
$(DESTDIR)$(HTDOCDIR)/snapshots/mdocml-$(VERSION).tar.gz |
|
$(INSTALL_DATA) mdocml.sha256 \ |
|
$(DESTDIR)$(HTDOCDIR)/snapshots/mdocml-$(VERSION).sha256 |
|
|
|
depend: config.h |
depend: config.h |
mkdep -f Makefile.depend $(CFLAGS) $(SRCS) |
mkdep -f Makefile.depend $(CFLAGS) $(SRCS) |
perl -e 'undef $$/; $$_ = <>; s|/usr/include/\S+||g; \ |
perl -e 'undef $$/; $$_ = <>; s|/usr/include/\S+||g; \ |
Line 404 config.h: configure config.h.pre config.h.post $(TESTS |
|
Line 369 config.h: configure config.h.pre config.h.post $(TESTS |
|
rm -f config.log |
rm -f config.log |
CC="$(CC)" CFLAGS="$(CFLAGS)" VERSION="$(VERSION)" ./configure |
CC="$(CC)" CFLAGS="$(CFLAGS)" VERSION="$(VERSION)" ./configure |
|
|
.PHONY: base-install db-install install www-install |
.PHONY: base-install db-install install |
.PHONY: clean depend |
.PHONY: clean depend |
.SUFFIXES: .1 .3 .5 .7 .8 .h |
|
.SUFFIXES: .1.html .3.html .5.html .7.html .8.html .h.html |
|
|
|
.h.h.html: |
|
highlight -I $< > $@ |
|
|
|
.1.1.html .3.3.html .5.5.html .7.7.html .8.8.html: mandoc |
|
./mandoc -Thtml -Wall,stop \ |
|
-Ostyle=style.css,man=%N.%S.html,includes=%I.html $< > $@ |
|