version 1.364, 2011/07/25 15:37:00 |
version 1.369, 2011/09/01 10:46:28 |
|
|
# 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.5 |
VERSION = 1.11.6 |
VDATE = 24 July 2011 |
VDATE = 16 August 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 |
Line 37 INSTALL_MAN = $(INSTALL_DATA) |
|
Line 37 INSTALL_MAN = $(INSTALL_DATA) |
|
# Linux needs -ldb to compile mandocdb. |
# Linux needs -ldb to compile mandocdb. |
#DBLIB = -ldb |
#DBLIB = -ldb |
|
|
all: mandoc preconv |
all: mandoc preconv demandoc |
|
|
SRCS = Makefile \ |
SRCS = Makefile \ |
arch.c \ |
arch.c \ |
Line 51 SRCS = Makefile \ |
|
Line 51 SRCS = Makefile \ |
|
compat_strlcpy.c \ |
compat_strlcpy.c \ |
config.h.post \ |
config.h.post \ |
config.h.pre \ |
config.h.pre \ |
|
demandoc.c \ |
|
demandoc.1 \ |
eqn.7 \ |
eqn.7 \ |
eqn.c \ |
eqn.c \ |
eqn_html.c \ |
eqn_html.c \ |
Line 117 SRCS = Makefile \ |
|
Line 119 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 256 PRECONV_LNS = preconv.ln |
|
Line 260 PRECONV_LNS = preconv.ln |
|
|
|
$(PRECONV_OBJS) $(PRECONV_LNS): config.h |
$(PRECONV_OBJS) $(PRECONV_LNS): config.h |
|
|
INDEX_MANS = mandoc.1.html \ |
DEMANDOC_OBJS = demandoc.o |
|
DEMANDOC_LNS = demandoc.ln |
|
|
|
$(DEMANDOC_OBJS) $(DEMANDOC_LNS): config.h |
|
|
|
INDEX_MANS = demandoc.1.html \ |
|
demandoc.1.xhtml \ |
|
demandoc.1.ps \ |
|
demandoc.1.pdf \ |
|
demandoc.1.txt \ |
|
mandoc.1.html \ |
mandoc.1.xhtml \ |
mandoc.1.xhtml \ |
mandoc.1.ps \ |
mandoc.1.ps \ |
mandoc.1.pdf \ |
mandoc.1.pdf \ |
Line 318 INDEX_OBJS = $(INDEX_MANS) \ |
|
Line 332 INDEX_OBJS = $(INDEX_MANS) \ |
|
|
|
www: index.html |
www: index.html |
|
|
lint: llib-llibmandoc.ln llib-lmandoc.ln llib-lpreconv.ln |
lint: llib-llibmandoc.ln llib-lmandoc.ln llib-lpreconv.ln llib-ldemandoc.ln |
|
|
clean: |
clean: |
rm -f libmandoc.a $(LIBMANDOC_OBJS) |
rm -f libmandoc.a $(LIBMANDOC_OBJS) |
|
|
rm -f llib-lmandocdb.ln $(MANDOCDB_LNS) |
rm -f llib-lmandocdb.ln $(MANDOCDB_LNS) |
rm -f preconv $(PRECONV_OBJS) |
rm -f preconv $(PRECONV_OBJS) |
rm -f llib-lpreconv.ln $(PRECONV_LNS) |
rm -f llib-lpreconv.ln $(PRECONV_LNS) |
|
rm -f demandoc $(DEMANDOC_OBJS) |
|
rm -f llib-ldemandoc.ln $(DEMANDOC_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_OBJS) $(COMPAT_LNS) |
rm -f config.h config.log $(COMPAT_OBJS) $(COMPAT_LNS) |
rm -f mdocml.tar.gz mdocml-win32.zip |
rm -f mdocml.tar.gz mdocml-win32.zip mdocml-win64.zip mdocml-macosx.zip |
rm -f index.html $(INDEX_OBJS) |
rm -f index.html $(INDEX_OBJS) |
rm -rf test-strlcpy.DSYM |
rm -rf test-strlcpy.DSYM |
rm -rf test-strlcat.DSYM |
rm -rf test-strlcat.DSYM |
|
|
mkdir -p $(DESTDIR)$(MANDIR)/man3 |
mkdir -p $(DESTDIR)$(MANDIR)/man3 |
mkdir -p $(DESTDIR)$(MANDIR)/man7 |
mkdir -p $(DESTDIR)$(MANDIR)/man7 |
mkdir -p $(DESTDIR)$(MANDIR)/man8 |
mkdir -p $(DESTDIR)$(MANDIR)/man8 |
$(INSTALL_PROGRAM) mandoc preconv $(DESTDIR)$(BINDIR) |
$(INSTALL_PROGRAM) mandoc preconv demandoc $(DESTDIR)$(BINDIR) |
$(INSTALL_LIB) libmandoc.a $(DESTDIR)$(LIBDIR) |
$(INSTALL_LIB) libmandoc.a $(DESTDIR)$(LIBDIR) |
$(INSTALL_LIB) man.h mdoc.h mandoc.h $(DESTDIR)$(INCLUDEDIR) |
$(INSTALL_LIB) man.h mdoc.h mandoc.h $(DESTDIR)$(INCLUDEDIR) |
$(INSTALL_MAN) mandoc.1 preconv.1 $(DESTDIR)$(MANDIR)/man1 |
$(INSTALL_MAN) mandoc.1 preconv.1 demandoc.1 $(DESTDIR)$(MANDIR)/man1 |
$(INSTALL_MAN) mandoc.3 $(DESTDIR)$(MANDIR)/man3 |
$(INSTALL_MAN) mandoc.3 $(DESTDIR)$(MANDIR)/man3 |
$(INSTALL_MAN) man.7 mdoc.7 roff.7 eqn.7 tbl.7 mandoc_char.7 $(DESTDIR)$(MANDIR)/man7 |
$(INSTALL_MAN) man.7 mdoc.7 roff.7 eqn.7 tbl.7 mandoc_char.7 $(DESTDIR)$(MANDIR)/man7 |
$(INSTALL_DATA) example.style.css $(DESTDIR)$(EXAMPLEDIR) |
$(INSTALL_DATA) example.style.css $(DESTDIR)$(EXAMPLEDIR) |
Line 373 llib-llibmandoc.ln: $(COMPAT_LNS) $(LIBMANDOC_LNS) |
|
Line 389 llib-llibmandoc.ln: $(COMPAT_LNS) $(LIBMANDOC_LNS) |
|
$(LINT) $(LINTFLAGS) -Clibmandoc $(COMPAT_LNS) $(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) $(LDFLAGS) -o $@ $(MANDOC_OBJS) libmandoc.a |
|
|
llib-lmandoc.ln: $(MANDOC_LNS) |
llib-lmandoc.ln: $(MANDOC_LNS) |
$(LINT) $(LINTFLAGS) -Cmandoc $(MANDOC_LNS) |
$(LINT) $(LINTFLAGS) -Cmandoc $(MANDOC_LNS) |
|
|
mandocdb: $(MANDOCDB_OBJS) libmandoc.a |
mandocdb: $(MANDOCDB_OBJS) libmandoc.a |
$(CC) -o $@ $(MANDOCDB_OBJS) libmandoc.a $(DBLIB) |
$(CC) $(LDFLAGS) -o $@ $(MANDOCDB_OBJS) libmandoc.a $(DBLIB) |
|
|
llib-lmandocdb.ln: $(MANDOCDB_LNS) |
llib-lmandocdb.ln: $(MANDOCDB_LNS) |
$(LINT) $(LINTFLAGS) -Cmandocdb $(MANDOCDB_LNS) |
$(LINT) $(LINTFLAGS) -Cmandocdb $(MANDOCDB_LNS) |
|
|
preconv: $(PRECONV_OBJS) |
preconv: $(PRECONV_OBJS) |
$(CC) -o $@ $(PRECONV_OBJS) |
$(CC) $(LDFLAGS) -o $@ $(PRECONV_OBJS) |
|
|
llib-lpreconv.ln: $(PRECONV_LNS) |
llib-lpreconv.ln: $(PRECONV_LNS) |
$(LINT) $(LINTFLAGS) -Cpreconv $(PRECONV_LNS) |
$(LINT) $(LINTFLAGS) -Cpreconv $(PRECONV_LNS) |
|
|
|
demandoc: $(DEMANDOC_OBJS) libmandoc.a |
|
$(CC) $(LDFLAGS) -o $@ $(DEMANDOC_OBJS) libmandoc.a |
|
|
|
llib-ldemandoc.ln: $(DEMANDOC_LNS) |
|
$(LINT) $(LINTFLAGS) -Cdemandoc $(DEMANDOC_LNS) |
|
|
mdocml.md5: mdocml.tar.gz |
mdocml.md5: mdocml.tar.gz |
md5 mdocml.tar.gz >$@ |
md5 mdocml.tar.gz >$@ |
|
|
Line 404 mdocml-win32.zip: $(SRCS) |
|
Line 426 mdocml-win32.zip: $(SRCS) |
|
$(INSTALL_SOURCE) $(SRCS) .win32 |
$(INSTALL_SOURCE) $(SRCS) .win32 |
cp .win32/Makefile .win32/Makefile.old |
cp .win32/Makefile .win32/Makefile.old |
grep -v DUSE_WCHAR .win32/Makefile.old >.win32/Makefile |
grep -v DUSE_WCHAR .win32/Makefile.old >.win32/Makefile |
( cd .win32; CC=i586-mingw32msvc-cc AR=i586-mingw32msvc-ar CFLAGS='-DOSNAME=\"Windows\"' make; \ |
( cd .win32; \ |
|
CC=i686-w64-mingw32-gcc AR=i686-w64-mingw32-ar CFLAGS='-DOSNAME=\"Windows\"' make; \ |
make install PREFIX=mdocml-$(VERSION) ; \ |
make install PREFIX=mdocml-$(VERSION) ; \ |
zip -r ../$@ mdocml-$(VERSION) ) |
zip -r ../$@ mdocml-$(VERSION) ) |
rm -rf .win32 |
rm -rf .win32 |
|
|
|
mdocml-win64.zip: $(SRCS) |
|
mkdir -p .win64/mdocml-$(VERSION)/ |
|
$(INSTALL_SOURCE) $(SRCS) .win64 |
|
cp .win64/Makefile .win64/Makefile.old |
|
grep -v DUSE_WCHAR .win64/Makefile.old >.win64/Makefile |
|
( cd .win64; \ |
|
CC=x86_64-w64-mingw32-gcc AR=x86_64-w64-mingw32-ar CFLAGS='-DOSNAME=\"Windows\"' make; \ |
|
make install PREFIX=mdocml-$(VERSION) ; \ |
|
zip -r ../$@ mdocml-$(VERSION) ) |
|
rm -rf .win64 |
|
|
|
mdocml-macosx.zip: $(SRCS) |
|
mkdir -p .macosx/mdocml-$(VERSION)/ |
|
$(INSTALL_SOURCE) $(SRCS) .macosx |
|
( cd .macosx; \ |
|
CFLAGS="-arch i386 -arch x86_64 -arch ppc" LDFLAGS="-arch i386 -arch x86_64 -arch ppc" make; \ |
|
make install PREFIX=mdocml-$(VERSION) ; \ |
|
zip -r ../$@ mdocml-$(VERSION) ) |
|
rm -rf .macosx |
|
|
index.html: $(INDEX_OBJS) |
index.html: $(INDEX_OBJS) |
|
|