version 1.360, 2011/07/23 22:57:13 |
version 1.365, 2011/08/16 12:13:27 |
|
|
# in the lower-left hand corner of -mdoc manuals. |
# in the lower-left hand corner of -mdoc manuals. |
# CFLAGS += -DOSNAME="\"OpenBSD 4.5\"" |
# CFLAGS += -DOSNAME="\"OpenBSD 4.5\"" |
|
|
VERSION = 1.11.4 |
VERSION = 1.11.5 |
VDATE = 12 July 2011 |
VDATE = 24 July 2011 |
# IFF your system supports multi-byte functions (setlocale(), wcwidth(), |
# IFF your system supports multi-byte functions (setlocale(), wcwidth(), |
# 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 -Tacsii. |
CFLAGS += -g -DUSE_WCHAR -DHAVE_CONFIG_H -DVERSION="\"$(VERSION)\"" |
CFLAGS += -DUSE_WCHAR |
|
CFLAGS += -g -DHAVE_CONFIG_H -DVERSION="\"$(VERSION)\"" |
CFLAGS += -W -Wall -Wstrict-prototypes -Wno-unused-parameter -Wwrite-strings |
CFLAGS += -W -Wall -Wstrict-prototypes -Wno-unused-parameter -Wwrite-strings |
PREFIX = /usr/local |
PREFIX = /usr/local |
BINDIR = $(PREFIX)/bin |
BINDIR = $(PREFIX)/bin |
Line 45 SRCS = Makefile \ |
|
Line 46 SRCS = Makefile \ |
|
att.in \ |
att.in \ |
chars.c \ |
chars.c \ |
chars.in \ |
chars.in \ |
compat.c \ |
compat_getsubopt.c \ |
|
compat_strlcat.c \ |
|
compat_strlcpy.c \ |
config.h.post \ |
config.h.post \ |
config.h.pre \ |
config.h.pre \ |
eqn.7 \ |
eqn.7 \ |
Line 114 SRCS = Makefile \ |
|
Line 117 SRCS = Makefile \ |
|
term.h \ |
term.h \ |
term_ascii.c \ |
term_ascii.c \ |
term_ps.c \ |
term_ps.c \ |
|
test-getsubopt.c \ |
test-mmap.c \ |
test-mmap.c \ |
test-strlcat.c \ |
test-strlcat.c \ |
test-strlcpy.c \ |
test-strlcpy.c \ |
|
test-strptime.c \ |
tree.c \ |
tree.c \ |
vol.c \ |
vol.c \ |
vol.in |
vol.in |
Line 179 LIBMANDOC_LNS = $(LIBMAN_LNS) \ |
|
Line 184 LIBMANDOC_LNS = $(LIBMAN_LNS) \ |
|
mandoc.ln \ |
mandoc.ln \ |
read.ln |
read.ln |
|
|
|
COMPAT_OBJS = compat_getsubopt.o \ |
|
compat_strlcat.o \ |
|
compat_strlcpy.o |
|
COMPAT_LNS = compat_getsubopt.ln \ |
|
compat_strlcat.ln \ |
|
compat_strlcpy.ln |
|
|
arch.o arch.ln: arch.in |
arch.o arch.ln: arch.in |
att.o att.ln: att.in |
att.o att.ln: att.in |
chars.o chars.ln: chars.in |
chars.o chars.ln: chars.in |
Line 193 $(LIBMDOC_OBJS) $(LIBMDOC_LNS): libmdoc.h |
|
Line 205 $(LIBMDOC_OBJS) $(LIBMDOC_LNS): libmdoc.h |
|
$(LIBROFF_OBJS) $(LIBROFF_LNS): libroff.h |
$(LIBROFF_OBJS) $(LIBROFF_LNS): libroff.h |
$(LIBMANDOC_OBJS) $(LIBMANDOC_LNS): mandoc.h mdoc.h man.h libmandoc.h config.h |
$(LIBMANDOC_OBJS) $(LIBMANDOC_LNS): mandoc.h mdoc.h man.h libmandoc.h config.h |
|
|
|
$(COMPAT_OBJS) $(COMPAT_LNS): config.h |
|
|
MANDOC_HTML_OBJS = eqn_html.o \ |
MANDOC_HTML_OBJS = eqn_html.o \ |
html.o \ |
html.o \ |
man_html.o \ |
man_html.o \ |
Line 234 $(MANDOC_HTML_OBJS) $(MANDOC_HTML_LNS): html.h |
|
Line 248 $(MANDOC_HTML_OBJS) $(MANDOC_HTML_LNS): html.h |
|
$(MANDOC_TERM_OBJS) $(MANDOC_TERM_LNS): term.h |
$(MANDOC_TERM_OBJS) $(MANDOC_TERM_LNS): term.h |
$(MANDOC_OBJS) $(MANDOC_LNS): main.h mandoc.h mdoc.h man.h config.h out.h |
$(MANDOC_OBJS) $(MANDOC_LNS): main.h mandoc.h mdoc.h man.h config.h out.h |
|
|
compat.o compat.ln: config.h |
|
|
|
MANDOCDB_OBJS = mandocdb.o |
MANDOCDB_OBJS = mandocdb.o |
MANDOCDB_LNS = mandocdb.ln |
MANDOCDB_LNS = mandocdb.ln |
|
|
|
|
rm -f llib-lpreconv.ln $(PRECONV_LNS) |
rm -f llib-lpreconv.ln $(PRECONV_LNS) |
rm -f mandoc $(MANDOC_OBJS) |
rm -f mandoc $(MANDOC_OBJS) |
rm -f llib-lmandoc.ln $(MANDOC_LNS) |
rm -f llib-lmandoc.ln $(MANDOC_LNS) |
rm -f config.h config.log compat.o compat.ln |
rm -f config.h config.log $(COMPAT_OBJS) $(COMPAT_LNS) |
rm -f mdocml.tar.gz |
rm -f mdocml.tar.gz mdocml-win32.zip |
rm -f index.html $(INDEX_OBJS) |
rm -f index.html $(INDEX_OBJS) |
|
rm -rf test-strlcpy.DSYM |
|
rm -rf test-strlcat.DSYM |
|
rm -rf test-strptime.DSYM |
|
rm -rf test-mmap.DSYM |
|
rm -rf test-getsubopt.DSYM |
|
|
install: all |
install: all |
mkdir -p $(DESTDIR)$(BINDIR) |
mkdir -p $(DESTDIR)$(BINDIR) |
|
|
|
|
installwww: www |
installwww: www |
mkdir -p $(PREFIX)/snapshots |
mkdir -p $(PREFIX)/snapshots |
|
mkdir -p $(PREFIX)/binaries |
$(INSTALL_DATA) index.html external.png index.css $(PREFIX) |
$(INSTALL_DATA) index.html external.png index.css $(PREFIX) |
$(INSTALL_DATA) $(INDEX_MANS) style.css $(PREFIX) |
$(INSTALL_DATA) $(INDEX_MANS) style.css $(PREFIX) |
$(INSTALL_DATA) mandoc.h.html man.h.html mdoc.h.html $(PREFIX) |
$(INSTALL_DATA) mandoc.h.html man.h.html mdoc.h.html $(PREFIX) |
|
|
$(INSTALL_DATA) mdocml.tar.gz $(PREFIX)/snapshots/mdocml-$(VERSION).tar.gz |
$(INSTALL_DATA) mdocml.tar.gz $(PREFIX)/snapshots/mdocml-$(VERSION).tar.gz |
$(INSTALL_DATA) mdocml.md5 $(PREFIX)/snapshots/mdocml-$(VERSION).md5 |
$(INSTALL_DATA) mdocml.md5 $(PREFIX)/snapshots/mdocml-$(VERSION).md5 |
|
|
libmandoc.a: compat.o $(LIBMANDOC_OBJS) |
libmandoc.a: $(COMPAT_OBJS) $(LIBMANDOC_OBJS) |
$(AR) rs $@ compat.o $(LIBMANDOC_OBJS) |
$(AR) rs $@ $(COMPAT_OBJS) $(LIBMANDOC_OBJS) |
|
|
llib-llibmandoc.ln: compat.ln $(LIBMANDOC_LNS) |
llib-llibmandoc.ln: $(COMPAT_LNS) $(LIBMANDOC_LNS) |
$(LINT) $(LINTFLAGS) -Clibmandoc compat.ln $(LIBMANDOC_LNS) |
$(LINT) $(LINTFLAGS) -Clibmandoc $(COMPAT_LNS) $(LIBMANDOC_LNS) |
|
|
mandoc: $(MANDOC_OBJS) libmandoc.a |
mandoc: $(MANDOC_OBJS) libmandoc.a |
$(CC) -o $@ $(MANDOC_OBJS) libmandoc.a |
$(CC) -o $@ $(MANDOC_OBJS) libmandoc.a |
Line 383 mdocml.tar.gz: $(SRCS) |
|
Line 401 mdocml.tar.gz: $(SRCS) |
|
( cd .dist/ && tar zcf ../$@ ./ ) |
( cd .dist/ && tar zcf ../$@ ./ ) |
rm -rf .dist/ |
rm -rf .dist/ |
|
|
|
mdocml-win32.zip: $(SRCS) |
|
mkdir -p .win32/mdocml-$(VERSION)/ |
|
$(INSTALL_SOURCE) $(SRCS) .win32 |
|
cp .win32/Makefile .win32/Makefile.old |
|
grep -v DUSE_WCHAR .win32/Makefile.old >.win32/Makefile |
|
( cd .win32; CC=i586-mingw32msvc-cc AR=i586-mingw32msvc-ar CFLAGS='-DOSNAME=\"Windows\"' make; \ |
|
make install PREFIX=mdocml-$(VERSION) ; \ |
|
zip -r ../$@ mdocml-$(VERSION) ) |
|
rm -rf .win32 |
|
|
index.html: $(INDEX_OBJS) |
index.html: $(INDEX_OBJS) |
|
|
config.h: config.h.pre config.h.post |
config.h: config.h.pre config.h.post |
rm -f config.log |
rm -f config.log |
( cat config.h.pre; \ |
( cat config.h.pre; \ |
echo; \ |
echo; \ |
|
if $(CC) $(CFLAGS) -Werror -o test-strptime test-strptime.c >> config.log 2>&1; then \ |
|
echo '#define HAVE_STRPTIME'; \ |
|
rm test-strptime; \ |
|
fi; \ |
|
if $(CC) $(CFLAGS) -Werror -o test-getsubopt test-getsubopt.c >> config.log 2>&1; then \ |
|
echo '#define HAVE_GETSUBOPT'; \ |
|
rm test-getsubopt; \ |
|
fi; \ |
if $(CC) $(CFLAGS) -Werror -o test-strlcat test-strlcat.c >> config.log 2>&1; then \ |
if $(CC) $(CFLAGS) -Werror -o test-strlcat test-strlcat.c >> config.log 2>&1; then \ |
echo '#define HAVE_STRLCAT'; \ |
echo '#define HAVE_STRLCAT'; \ |
rm test-strlcat; \ |
rm test-strlcat; \ |