version 1.477, 2015/11/07 17:58:55 |
version 1.486, 2016/07/10 10:05:33 |
|
|
# $Id$ |
# $Id$ |
# |
# |
# Copyright (c) 2010, 2011, 2012 Kristaps Dzonsons <kristaps@bsd.lv> |
# Copyright (c) 2010, 2011, 2012 Kristaps Dzonsons <kristaps@bsd.lv> |
# Copyright (c) 2011, 2013, 2014, 2015 Ingo Schwarze <schwarze@openbsd.org> |
# Copyright (c) 2011, 2013-2016 Ingo Schwarze <schwarze@openbsd.org> |
# |
# |
# Permission to use, copy, modify, and distribute this software for any |
# Permission to use, copy, modify, and distribute this software for any |
# purpose with or without fee is hereby granted, provided that the above |
# purpose with or without fee is hereby granted, provided that the above |
|
|
# 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.3 |
VERSION = 1.13.4 |
|
|
# === LIST OF FILES ==================================================== |
# === LIST OF FILES ==================================================== |
|
|
TESTSRCS = test-dirent-namlen.c \ |
TESTSRCS = test-dirent-namlen.c \ |
test-err.c \ |
test-err.c \ |
test-fts.c \ |
test-fts.c \ |
|
test-getline.c \ |
test-getsubopt.c \ |
test-getsubopt.c \ |
test-isblank.c \ |
test-isblank.c \ |
test-mkdtemp.c \ |
test-mkdtemp.c \ |
Line 30 TESTSRCS = test-dirent-namlen.c \ |
|
Line 31 TESTSRCS = test-dirent-namlen.c \ |
|
test-pledge.c \ |
test-pledge.c \ |
test-progname.c \ |
test-progname.c \ |
test-reallocarray.c \ |
test-reallocarray.c \ |
|
test-rewb-bsd.c \ |
|
test-rewb-sysv.c \ |
test-sqlite3.c \ |
test-sqlite3.c \ |
test-sqlite3_errstr.c \ |
test-sqlite3_errstr.c \ |
test-strcasestr.c \ |
test-strcasestr.c \ |
|
|
chars.c \ |
chars.c \ |
compat_err.c \ |
compat_err.c \ |
compat_fts.c \ |
compat_fts.c \ |
|
compat_getline.c \ |
compat_getsubopt.c \ |
compat_getsubopt.c \ |
compat_isblank.c \ |
compat_isblank.c \ |
compat_mkdtemp.c \ |
compat_mkdtemp.c \ |
Line 136 DISTFILES = INSTALL \ |
|
Line 140 DISTFILES = INSTALL \ |
|
makewhatis.8 \ |
makewhatis.8 \ |
man.1 \ |
man.1 \ |
man.7 \ |
man.7 \ |
|
man.cgi.3 \ |
man.cgi.8 \ |
man.cgi.8 \ |
man.conf.5 \ |
man.conf.5 \ |
man.h \ |
man.h \ |
Line 162 DISTFILES = INSTALL \ |
|
Line 167 DISTFILES = INSTALL \ |
|
predefs.in \ |
predefs.in \ |
roff.7 \ |
roff.7 \ |
roff.h \ |
roff.h \ |
|
roff_int.h \ |
soelim.1 \ |
soelim.1 \ |
st.in \ |
st.in \ |
tag.h \ |
tag.h \ |
Line 206 LIBMANDOC_OBJS = $(LIBMAN_OBJS) \ |
|
Line 212 LIBMANDOC_OBJS = $(LIBMAN_OBJS) \ |
|
|
|
COMPAT_OBJS = compat_err.o \ |
COMPAT_OBJS = compat_err.o \ |
compat_fts.o \ |
compat_fts.o \ |
|
compat_getline.o \ |
compat_getsubopt.o \ |
compat_getsubopt.o \ |
compat_isblank.o \ |
compat_isblank.o \ |
compat_mkdtemp.o \ |
compat_mkdtemp.o \ |
Line 261 MANPAGE_OBJS = manpage.o mansearch.o mansearch_const. |
|
Line 268 MANPAGE_OBJS = manpage.o mansearch.o mansearch_const. |
|
|
|
DEMANDOC_OBJS = demandoc.o |
DEMANDOC_OBJS = demandoc.o |
|
|
SOELIM_OBJS = soelim.o compat_stringlist.o |
SOELIM_OBJS = soelim.o \ |
|
compat_err.o \ |
|
compat_getline.o \ |
|
compat_progname.o \ |
|
compat_reallocarray.o \ |
|
compat_stringlist.o |
|
|
WWW_MANS = apropos.1.html \ |
WWW_MANS = apropos.1.html \ |
demandoc.1.html \ |
demandoc.1.html \ |
Line 285 WWW_MANS = apropos.1.html \ |
|
Line 297 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.3.html \ |
man.cgi.8.html \ |
man.cgi.8.html \ |
man.h.html \ |
man.h.html \ |
manconf.h.html \ |
manconf.h.html \ |
Line 384 db-install: base-build |
|
Line 397 db-install: base-build |
|
cgi-install: cgi-build |
cgi-install: cgi-build |
mkdir -p $(DESTDIR)$(CGIBINDIR) |
mkdir -p $(DESTDIR)$(CGIBINDIR) |
mkdir -p $(DESTDIR)$(HTDOCDIR) |
mkdir -p $(DESTDIR)$(HTDOCDIR) |
mkdir -p $(DESTDIR)$(WWWPREFIX)/man/mandoc/man1 |
|
mkdir -p $(DESTDIR)$(WWWPREFIX)/man/mandoc/man8 |
|
$(INSTALL_PROGRAM) man.cgi $(DESTDIR)$(CGIBINDIR) |
$(INSTALL_PROGRAM) man.cgi $(DESTDIR)$(CGIBINDIR) |
$(INSTALL_DATA) mandoc.css $(DESTDIR)$(HTDOCDIR) |
$(INSTALL_DATA) mandoc.css $(DESTDIR)$(HTDOCDIR) |
$(INSTALL_MAN) apropos.1 $(DESTDIR)$(WWWPREFIX)/man/mandoc/man1/ |
|
$(INSTALL_MAN) man.cgi.8 $(DESTDIR)$(WWWPREFIX)/man/mandoc/man8/ |
|
|
|
Makefile.local config.h: configure ${TESTSRCS} |
Makefile.local config.h: configure ${TESTSRCS} |
@echo "$@ is out of date; please run ./configure" |
@echo "$@ is out of date; please run ./configure" |
@exit 1 |
@exit 1 |
|
|
libmandoc.a: $(COMPAT_OBJS) $(LIBMANDOC_OBJS) |
libmandoc.a: $(COMPAT_OBJS) $(LIBMANDOC_OBJS) |
$(AR) rs $@ $(COMPAT_OBJS) $(LIBMANDOC_OBJS) |
ar rs $@ $(COMPAT_OBJS) $(LIBMANDOC_OBJS) |
|
|
mandoc: $(MAIN_OBJS) libmandoc.a |
mandoc: $(MAIN_OBJS) libmandoc.a |
$(CC) $(LDFLAGS) -o $@ $(MAIN_OBJS) libmandoc.a $(DBLIB) |
$(CC) -o $@ $(MAIN_OBJS) libmandoc.a $(LDADD) |
|
|
manpage: $(MANPAGE_OBJS) libmandoc.a |
manpage: $(MANPAGE_OBJS) libmandoc.a |
$(CC) $(LDFLAGS) -o $@ $(MANPAGE_OBJS) libmandoc.a $(DBLIB) |
$(CC) -o $@ $(MANPAGE_OBJS) libmandoc.a $(LDADD) |
|
|
man.cgi: $(CGI_OBJS) libmandoc.a |
man.cgi: $(CGI_OBJS) libmandoc.a |
$(CC) $(LDFLAGS) $(STATIC) -o $@ $(CGI_OBJS) libmandoc.a $(DBLIB) |
$(CC) $(STATIC) -o $@ $(CGI_OBJS) libmandoc.a $(LDADD) |
|
|
demandoc: $(DEMANDOC_OBJS) libmandoc.a |
demandoc: $(DEMANDOC_OBJS) libmandoc.a |
$(CC) $(LDFLAGS) -o $@ $(DEMANDOC_OBJS) libmandoc.a $(DBLIB) |
$(CC) -o $@ $(DEMANDOC_OBJS) libmandoc.a $(LDADD) |
|
|
soelim: $(SOELIM_OBJS) compat_reallocarray.o |
soelim: $(SOELIM_OBJS) |
$(CC) $(LDFLAGS) -o $@ $(SOELIM_OBJS) compat_reallocarray.o |
$(CC) -o $@ $(SOELIM_OBJS) |
|
|
# --- maintainer targets --- |
# --- maintainer targets --- |
|
|
Line 430 depend: config.h |
|
Line 439 depend: config.h |
|
s|\\\n||g; s| +| |g; s| $$||mg; print;' \ |
s|\\\n||g; s| +| |g; s| $$||mg; print;' \ |
Makefile.depend > Makefile.tmp |
Makefile.depend > Makefile.tmp |
mv Makefile.tmp Makefile.depend |
mv Makefile.tmp Makefile.depend |
|
|
|
dist: mdocml.sha256 |
|
|
mdocml.sha256: mdocml.tar.gz |
mdocml.sha256: mdocml.tar.gz |
sha256 mdocml.tar.gz > $@ |
sha256 mdocml.tar.gz > $@ |