=================================================================== RCS file: /cvs/mandoc/Makefile,v retrieving revision 1.430 retrieving revision 1.437 diff -u -p -r1.430 -r1.437 --- mandoc/Makefile 2014/08/05 05:48:56 1.430 +++ mandoc/Makefile 2014/08/11 01:39:00 1.437 @@ -1,4 +1,4 @@ -# $Id: Makefile,v 1.430 2014/08/05 05:48:56 schwarze Exp $ +# $Id: Makefile,v 1.437 2014/08/11 01:39:00 schwarze Exp $ # # Copyright (c) 2010, 2011, 2012 Kristaps Dzonsons # Copyright (c) 2011, 2013, 2014 Ingo Schwarze @@ -15,7 +15,7 @@ # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -VERSION = 1.13.0 +VERSION = 1.13.1 # === USER SETTINGS ==================================================== @@ -34,8 +34,8 @@ VERSION = 1.13.0 # CFLAGS += -DUSE_WCHAR -CFLAGS += -g -DHAVE_CONFIG_H -CFLAGS += -W -Wall -Wstrict-prototypes -Wno-unused-parameter -Wwrite-strings +CFLAGS += -g -W -Wall -Wstrict-prototypes +CFLAGS += -Wno-unused-parameter -Wwrite-strings PREFIX = /usr/local BINDIR = $(PREFIX)/bin INCLUDEDIR = $(PREFIX)/include/mandoc @@ -52,9 +52,8 @@ INSTALL_MAN = $(INSTALL_DATA) # --- user settings related to database support ------------------------ -# If you want to build without database support, for example to avoid -# the dependency on SQLite3, comment the following line. -# However, you won't get apropos(1) and makewhatis(8) in that case. +# Building apropos(1) and makewhatis(8) requires SQLite3. +# To avoid that dependency, comment the following line. # BUILD_TARGETS += db-build @@ -121,6 +120,7 @@ TESTSRCS = test-fgetln.c \ test-mmap.c \ test-ohash.c \ test-reallocarray.c \ + test-sqlite3_errstr.c \ test-strcasestr.c \ test-strlcat.c \ test-strlcpy.c \ @@ -133,9 +133,11 @@ SRCS = apropos.c \ cgi.c \ chars.c \ compat_fgetln.c \ + compat_fts.c \ compat_getsubopt.c \ compat_ohash.c \ compat_reallocarray.c \ + compat_sqlite3_errstr.c \ compat_strcasestr.c \ compat_strlcat.c \ compat_strlcpy.c \ @@ -187,7 +189,8 @@ SRCS = apropos.c \ vol.c \ $(TESTSRCS) -DISTFILES = LICENSE \ +DISTFILES = INSTALL \ + LICENSE \ Makefile \ Makefile.depend \ NEWS \ @@ -197,6 +200,7 @@ DISTFILES = LICENSE \ att.in \ cgi.h.example \ chars.in \ + compat_fts.h \ compat_ohash.h \ config.h.post \ config.h.pre \ @@ -278,9 +282,11 @@ LIBMANDOC_OBJS = $(LIBMAN_OBJS) \ read.o COMPAT_OBJS = compat_fgetln.o \ + compat_fts.o \ compat_getsubopt.o \ compat_ohash.o \ compat_reallocarray.o \ + compat_sqlite3_errstr.o \ compat_strcasestr.o \ compat_strlcat.o \ compat_strlcpy.o \ @@ -369,7 +375,7 @@ install: base-install $(INSTALL_TARGETS) www: $(WWW_OBJS) $(WWW_MANS) -.include "Makefile.depend" +include Makefile.depend # === TARGETS CONTAINING SHELL COMMANDS ================================ @@ -442,7 +448,7 @@ www-install: www $(INSTALL_DATA) mdocml.sha256 \ $(DESTDIR)$(HTDOCDIR)/snapshots/mdocml-$(VERSION).sha256 -Makefile.depend: $(SRCS) config.h Makefile +depend: config.h mkdep -f Makefile.depend $(CFLAGS) $(SRCS) perl -e 'undef $$/; $$_ = <>; s|/usr/include/\S+||g; \ s|\\\n||g; s| +| |g; print;' Makefile.depend > Makefile.tmp @@ -484,9 +490,11 @@ mdocml.tar.gz: $(DISTFILES) config.h: configure config.h.pre config.h.post $(TESTSRCS) 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.html .3.html .5.html .7.html .8.html .h.html