version 1.530, 2019/03/06 16:08:41 |
version 1.532, 2020/03/13 17:31:44 |
|
|
# $Id$ |
# $Id$ |
# |
# |
|
# Copyright (c) 2011, 2013-2020 Ingo Schwarze <schwarze@openbsd.org> |
# Copyright (c) 2010, 2011, 2012 Kristaps Dzonsons <kristaps@bsd.lv> |
# Copyright (c) 2010, 2011, 2012 Kristaps Dzonsons <kristaps@bsd.lv> |
# Copyright (c) 2011, 2013-2019 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 |
|
|
term_ascii.c \ |
term_ascii.c \ |
term_ps.c \ |
term_ps.c \ |
term_tab.c \ |
term_tab.c \ |
|
term_tag.c \ |
tree.c |
tree.c |
|
|
DISTFILES = INSTALL \ |
DISTFILES = INSTALL \ |
Line 209 DISTFILES = INSTALL \ |
|
Line 210 DISTFILES = INSTALL \ |
|
tbl_int.h \ |
tbl_int.h \ |
tbl_parse.h \ |
tbl_parse.h \ |
term.h \ |
term.h \ |
|
term_tag.h \ |
$(SRCS) \ |
$(SRCS) \ |
$(TESTSRCS) |
$(TESTSRCS) |
|
|
Line 245 LIBMANDOC_OBJS = $(LIBMAN_OBJS) \ |
|
Line 247 LIBMANDOC_OBJS = $(LIBMAN_OBJS) \ |
|
mandoc_xr.o \ |
mandoc_xr.o \ |
msec.o \ |
msec.o \ |
preconv.o \ |
preconv.o \ |
read.o |
read.o \ |
|
tag.o |
|
|
COMPAT_OBJS = compat_err.o \ |
COMPAT_OBJS = compat_err.o \ |
compat_fts.o \ |
compat_fts.o \ |
Line 280 MANDOC_TERM_OBJS = eqn_term.o \ |
|
Line 283 MANDOC_TERM_OBJS = eqn_term.o \ |
|
term_ascii.o \ |
term_ascii.o \ |
term_ps.o \ |
term_ps.o \ |
term_tab.o \ |
term_tab.o \ |
|
term_tag.o \ |
tbl_term.o |
tbl_term.o |
|
|
DBM_OBJS = dbm.o \ |
DBM_OBJS = dbm.o \ |
Line 302 MAIN_OBJS = $(MANDOC_HTML_OBJS) \ |
|
Line 306 MAIN_OBJS = $(MANDOC_HTML_OBJS) \ |
|
mdoc_man.o \ |
mdoc_man.o \ |
mdoc_markdown.o \ |
mdoc_markdown.o \ |
out.o \ |
out.o \ |
tag.o \ |
|
tree.o |
tree.o |
|
|
CGI_OBJS = $(MANDOC_HTML_OBJS) \ |
CGI_OBJS = $(MANDOC_HTML_OBJS) \ |
Line 313 CGI_OBJS = $(MANDOC_HTML_OBJS) \ |
|
Line 316 CGI_OBJS = $(MANDOC_HTML_OBJS) \ |
|
MANDOCD_OBJS = $(MANDOC_HTML_OBJS) \ |
MANDOCD_OBJS = $(MANDOC_HTML_OBJS) \ |
$(MANDOC_TERM_OBJS) \ |
$(MANDOC_TERM_OBJS) \ |
mandocd.o \ |
mandocd.o \ |
out.o \ |
out.o |
tag.o |
|
|
|
DEMANDOC_OBJS = demandoc.o |
DEMANDOC_OBJS = demandoc.o |
|
|
Line 393 distclean: clean |
|
Line 395 distclean: clean |
|
|
|
clean: |
clean: |
rm -f libmandoc.a $(LIBMANDOC_OBJS) $(COMPAT_OBJS) |
rm -f libmandoc.a $(LIBMANDOC_OBJS) $(COMPAT_OBJS) |
rm -f mandoc $(MAIN_OBJS) |
rm -f mandoc man $(MAIN_OBJS) |
rm -f man.cgi $(CGI_OBJS) |
rm -f man.cgi $(CGI_OBJS) |
rm -f mandocd catman catman.o $(MANDOCD_OBJS) |
rm -f mandocd catman catman.o $(MANDOCD_OBJS) |
rm -f demandoc $(DEMANDOC_OBJS) |
rm -f demandoc $(DEMANDOC_OBJS) |
rm -f soelim $(SOELIM_OBJS) |
rm -f soelim $(SOELIM_OBJS) |
rm -f $(WWW_MANS) $(WWW_INCS) mandoc*.tar.gz mandoc*.sha256 |
rm -f $(WWW_MANS) $(WWW_INCS) mandoc*.tar.gz mandoc*.sha256 |
|
rm -f Makefile.tmp1 Makefile.tmp2 |
rm -rf *.dSYM |
rm -rf *.dSYM |
|
|
base-install: mandoc demandoc soelim |
base-install: mandoc demandoc soelim |
|
|
rm -f $(DESTDIR)$(INCLUDEDIR)/tbl.h |
rm -f $(DESTDIR)$(INCLUDEDIR)/tbl.h |
[ ! -e $(DESTDIR)$(INCLUDEDIR) ] || rmdir $(DESTDIR)$(INCLUDEDIR) |
[ ! -e $(DESTDIR)$(INCLUDEDIR) ] || rmdir $(DESTDIR)$(INCLUDEDIR) |
|
|
regress: all |
regress: all man |
cd regress && ./regress.pl |
cd regress && ./regress.pl |
|
|
regress-clean: |
regress-clean: |
Line 517 libmandoc.a: $(COMPAT_OBJS) $(LIBMANDOC_OBJS) |
|
Line 520 libmandoc.a: $(COMPAT_OBJS) $(LIBMANDOC_OBJS) |
|
mandoc: $(MAIN_OBJS) libmandoc.a |
mandoc: $(MAIN_OBJS) libmandoc.a |
$(CC) -o $@ $(LDFLAGS) $(MAIN_OBJS) libmandoc.a $(LDADD) |
$(CC) -o $@ $(LDFLAGS) $(MAIN_OBJS) libmandoc.a $(LDADD) |
|
|
|
man: mandoc |
|
$(LN) mandoc man |
|
|
man.cgi: $(CGI_OBJS) libmandoc.a |
man.cgi: $(CGI_OBJS) libmandoc.a |
$(CC) $(STATIC) -o $@ $(LDFLAGS) $(CGI_OBJS) libmandoc.a $(LDADD) |
$(CC) $(STATIC) -o $@ $(LDFLAGS) $(CGI_OBJS) libmandoc.a $(LDADD) |
|
|
Line 540 www-install: www |
|
Line 546 www-install: www |
|
$(INSTALL_DATA) $(WWW_INCS) $(HTDOCDIR)/includes |
$(INSTALL_DATA) $(WWW_INCS) $(HTDOCDIR)/includes |
|
|
depend: config.h |
depend: config.h |
mkdep -f Makefile.depend $(CFLAGS) $(SRCS) |
./configure -depend |
|
mkdep -f Makefile.tmp1 $(CFLAGS) $(SRCS) |
perl -e 'undef $$/; $$_ = <>; s|/usr/include/\S+||g; \ |
perl -e 'undef $$/; $$_ = <>; s|/usr/include/\S+||g; \ |
s|\\\n||g; s| +| |g; s| $$||mg; print;' \ |
s|\\\n||g; s| +| |g; s| $$||mg; print;' \ |
Makefile.depend > Makefile.tmp |
Makefile.tmp1 > Makefile.tmp2 |
mv Makefile.tmp Makefile.depend |
rm Makefile.tmp1 |
|
mv Makefile.tmp2 Makefile.depend |
|
|
regress-distclean: |
regress-distclean: |
@find regress \ |
@find regress \ |