version 1.429, 2014/08/05 05:27:16 |
version 1.439, 2014/08/12 21:35:48 |
|
|
# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF |
# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF |
# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
|
|
VERSION = 1.13.0 |
VERSION = 1.13.1 |
|
|
# === USER SETTINGS ==================================================== |
# === USER SETTINGS ==================================================== |
|
|
|
|
# putwchar()) AND has __STDC_ISO_10646__ (that is, wchar_t is simply a |
# putwchar()) AND has __STDC_ISO_10646__ (that is, wchar_t is simply a |
# UCS-4 value) should you define USE_WCHAR. If you define it and your |
# UCS-4 value) should you define USE_WCHAR. If you define it and your |
# system DOESN'T support this, -Tlocale will produce garbage. |
# system DOESN'T support this, -Tlocale will produce garbage. |
# If you don't define it, -Tlocale is a synonym for -Tacsii. |
# If you don't define it, -Tlocale is a synonym for -Tascii. |
# |
# |
CFLAGS += -DUSE_WCHAR |
CFLAGS += -DUSE_WCHAR |
|
|
CFLAGS += -g -DHAVE_CONFIG_H |
CFLAGS += -g -W -Wall -Wstrict-prototypes |
CFLAGS += -W -Wall -Wstrict-prototypes -Wno-unused-parameter -Wwrite-strings |
CFLAGS += -Wno-unused-parameter -Wwrite-strings |
PREFIX = /usr/local |
PREFIX = /usr/local |
BINDIR = $(PREFIX)/bin |
BINDIR = $(PREFIX)/bin |
INCLUDEDIR = $(PREFIX)/include/mandoc |
INCLUDEDIR = $(PREFIX)/include/mandoc |
Line 52 INSTALL_MAN = $(INSTALL_DATA) |
|
Line 52 INSTALL_MAN = $(INSTALL_DATA) |
|
|
|
# --- user settings related to database support ------------------------ |
# --- user settings related to database support ------------------------ |
|
|
# If you want to build without database support, for example to avoid |
# Building apropos(1) and makewhatis(8) requires SQLite3. |
# the dependency on SQLite3, comment the following line. |
# To avoid that dependency, comment the following line. |
# However, you won't get apropos(1) and makewhatis(8) in that case. |
|
# |
# |
BUILD_TARGETS += db-build |
BUILD_TARGETS += db-build |
|
|
Line 116 CGIBIN = man.cgi |
|
Line 115 CGIBIN = man.cgi |
|
|
|
DBLIB += -lsqlite3 |
DBLIB += -lsqlite3 |
|
|
TESTSRCS = test-fgetln.c \ |
TESTSRCS = test-dirent-namlen.c \ |
|
test-fgetln.c \ |
|
test-fts.c \ |
test-getsubopt.c \ |
test-getsubopt.c \ |
test-mmap.c \ |
test-mmap.c \ |
test-ohash.c \ |
test-ohash.c \ |
test-reallocarray.c \ |
test-reallocarray.c \ |
|
test-sqlite3_errstr.c \ |
test-strcasestr.c \ |
test-strcasestr.c \ |
test-strlcat.c \ |
test-strlcat.c \ |
test-strlcpy.c \ |
test-strlcpy.c \ |
Line 133 SRCS = apropos.c \ |
|
Line 135 SRCS = apropos.c \ |
|
cgi.c \ |
cgi.c \ |
chars.c \ |
chars.c \ |
compat_fgetln.c \ |
compat_fgetln.c \ |
|
compat_fts.c \ |
compat_getsubopt.c \ |
compat_getsubopt.c \ |
compat_ohash.c \ |
compat_ohash.c \ |
compat_reallocarray.c \ |
compat_reallocarray.c \ |
|
compat_sqlite3_errstr.c \ |
compat_strcasestr.c \ |
compat_strcasestr.c \ |
compat_strlcat.c \ |
compat_strlcat.c \ |
compat_strlcpy.c \ |
compat_strlcpy.c \ |
Line 187 SRCS = apropos.c \ |
|
Line 191 SRCS = apropos.c \ |
|
vol.c \ |
vol.c \ |
$(TESTSRCS) |
$(TESTSRCS) |
|
|
DISTFILES = LICENSE \ |
DISTFILES = INSTALL \ |
|
LICENSE \ |
Makefile \ |
Makefile \ |
Makefile.depend \ |
Makefile.depend \ |
NEWS \ |
NEWS \ |
Line 197 DISTFILES = LICENSE \ |
|
Line 202 DISTFILES = LICENSE \ |
|
att.in \ |
att.in \ |
cgi.h.example \ |
cgi.h.example \ |
chars.in \ |
chars.in \ |
|
compat_fts.h \ |
compat_ohash.h \ |
compat_ohash.h \ |
config.h.post \ |
config.h.post \ |
config.h.pre \ |
config.h.pre \ |
Line 223 DISTFILES = LICENSE \ |
|
Line 229 DISTFILES = LICENSE \ |
|
mandoc.h \ |
mandoc.h \ |
mandoc_aux.h \ |
mandoc_aux.h \ |
mandoc_char.7 \ |
mandoc_char.7 \ |
|
mandoc_escape.3 \ |
mandoc_html.3 \ |
mandoc_html.3 \ |
|
mandoc_malloc.3 \ |
manpath.h \ |
manpath.h \ |
mansearch.3 \ |
mansearch.3 \ |
mansearch.h \ |
mansearch.h \ |
|
mchars_alloc.3 \ |
mdoc.7 \ |
mdoc.7 \ |
mdoc.h \ |
mdoc.h \ |
msec.in \ |
msec.in \ |
Line 275 LIBMANDOC_OBJS = $(LIBMAN_OBJS) \ |
|
Line 284 LIBMANDOC_OBJS = $(LIBMAN_OBJS) \ |
|
read.o |
read.o |
|
|
COMPAT_OBJS = compat_fgetln.o \ |
COMPAT_OBJS = compat_fgetln.o \ |
|
compat_fts.o \ |
compat_getsubopt.o \ |
compat_getsubopt.o \ |
compat_ohash.o \ |
compat_ohash.o \ |
compat_reallocarray.o \ |
compat_reallocarray.o \ |
|
compat_sqlite3_errstr.o \ |
compat_strcasestr.o \ |
compat_strcasestr.o \ |
compat_strlcat.o \ |
compat_strlcat.o \ |
compat_strlcpy.o \ |
compat_strlcpy.o \ |
Line 327 WWW_MANS = apropos.1.html \ |
|
Line 338 WWW_MANS = apropos.1.html \ |
|
mandoc.1.html \ |
mandoc.1.html \ |
preconv.1.html \ |
preconv.1.html \ |
mandoc.3.html \ |
mandoc.3.html \ |
|
mandoc_escape.3.html \ |
mandoc_html.3.html \ |
mandoc_html.3.html \ |
|
mandoc_malloc.3.html \ |
mansearch.3.html \ |
mansearch.3.html \ |
|
mchars_alloc.3.html \ |
tbl.3.html \ |
tbl.3.html \ |
mandoc.db.5.html \ |
mandoc.db.5.html \ |
eqn.7.html \ |
eqn.7.html \ |
Line 363 install: base-install $(INSTALL_TARGETS) |
|
Line 377 install: base-install $(INSTALL_TARGETS) |
|
|
|
www: $(WWW_OBJS) $(WWW_MANS) |
www: $(WWW_OBJS) $(WWW_MANS) |
|
|
.include "Makefile.depend" |
include Makefile.depend |
|
|
# === TARGETS CONTAINING SHELL COMMANDS ================================ |
# === TARGETS CONTAINING SHELL COMMANDS ================================ |
|
|
Line 393 base-install: base-build |
|
Line 407 base-install: base-build |
|
$(INSTALL_LIB) man.h mandoc.h mandoc_aux.h mdoc.h \ |
$(INSTALL_LIB) man.h mandoc.h mandoc_aux.h mdoc.h \ |
$(DESTDIR)$(INCLUDEDIR) |
$(DESTDIR)$(INCLUDEDIR) |
$(INSTALL_MAN) mandoc.1 preconv.1 demandoc.1 $(DESTDIR)$(MANDIR)/man1 |
$(INSTALL_MAN) mandoc.1 preconv.1 demandoc.1 $(DESTDIR)$(MANDIR)/man1 |
$(INSTALL_MAN) mandoc.3 tbl.3 $(DESTDIR)$(MANDIR)/man3 |
$(INSTALL_MAN) mandoc.3 mandoc_escape.3 mandoc_malloc.3 \ |
|
mchars_alloc.3 tbl.3 $(DESTDIR)$(MANDIR)/man3 |
$(INSTALL_MAN) man.7 mdoc.7 roff.7 eqn.7 tbl.7 mandoc_char.7 \ |
$(INSTALL_MAN) man.7 mdoc.7 roff.7 eqn.7 tbl.7 mandoc_char.7 \ |
$(DESTDIR)$(MANDIR)/man7 |
$(DESTDIR)$(MANDIR)/man7 |
$(INSTALL_DATA) example.style.css $(DESTDIR)$(EXAMPLEDIR) |
$(INSTALL_DATA) example.style.css $(DESTDIR)$(EXAMPLEDIR) |
Line 435 www-install: www |
|
Line 450 www-install: www |
|
$(INSTALL_DATA) mdocml.sha256 \ |
$(INSTALL_DATA) mdocml.sha256 \ |
$(DESTDIR)$(HTDOCDIR)/snapshots/mdocml-$(VERSION).sha256 |
$(DESTDIR)$(HTDOCDIR)/snapshots/mdocml-$(VERSION).sha256 |
|
|
Makefile.depend: $(SRCS) config.h Makefile |
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; \ |
s|\\\n||g; s| +| |g; print;' Makefile.depend > Makefile.tmp |
s|\\\n||g; s| +| |g; print;' Makefile.depend > Makefile.tmp |
Line 477 mdocml.tar.gz: $(DISTFILES) |
|
Line 492 mdocml.tar.gz: $(DISTFILES) |
|
|
|
config.h: configure config.h.pre config.h.post $(TESTSRCS) |
config.h: configure config.h.pre config.h.post $(TESTSRCS) |
rm -f config.log |
rm -f config.log |
CC="$(CC)" CFLAGS="$(CFLAGS)" VERSION="$(VERSION)" ./configure |
CC="$(CC)" CFLAGS="$(CFLAGS)" DBLIB="$(DBLIB)" \ |
|
VERSION="$(VERSION)" ./configure |
|
|
.PHONY: base-install clean cgi-install db-install install www-install |
.PHONY: base-install cgi-install db-install install www-install |
|
.PHONY: clean depend |
.SUFFIXES: .1 .3 .5 .7 .8 .h |
.SUFFIXES: .1 .3 .5 .7 .8 .h |
.SUFFIXES: .1.html .3.html .5.html .7.html .8.html .h.html |
.SUFFIXES: .1.html .3.html .5.html .7.html .8.html .h.html |
|
|