Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src Build glue for mdocml and for mandoc as standalone tool.
details: https://anonhg.NetBSD.org/src/rev/4b57d03ea18a
branches: trunk
changeset: 748352:4b57d03ea18a
user: joerg <joerg%NetBSD.org@localhost>
date: Wed Oct 21 18:04:52 2009 +0000
description:
Build glue for mdocml and for mandoc as standalone tool.
diffstat:
external/bsd/mdocml/Makefile | 5 +++++
external/bsd/mdocml/Makefile.inc | 18 ++++++++++++++++++
external/bsd/mdocml/bin/Makefile | 5 +++++
external/bsd/mdocml/bin/Makefile.inc | 3 +++
external/bsd/mdocml/bin/mandoc/Makefile | 20 ++++++++++++++++++++
external/bsd/mdocml/lib/Makefile | 5 +++++
external/bsd/mdocml/lib/Makefile.inc | 3 +++
external/bsd/mdocml/lib/libman/Makefile | 10 ++++++++++
external/bsd/mdocml/lib/libmdoc/Makefile | 11 +++++++++++
external/bsd/mdocml/man/Makefile | 19 +++++++++++++++++++
external/bsd/mdocml/prepare-import.sh | 14 ++++++++++++++
tools/mandoc/Makefile | 6 ++++++
12 files changed, 119 insertions(+), 0 deletions(-)
diffs (167 lines):
diff -r 4fc1aeec541f -r 4b57d03ea18a external/bsd/mdocml/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/external/bsd/mdocml/Makefile Wed Oct 21 18:04:52 2009 +0000
@@ -0,0 +1,5 @@
+# $NetBSD: Makefile,v 1.1 2009/10/21 18:04:52 joerg Exp $
+
+SUBDIR= lib .WAIT bin man
+
+.include <bsd.subdir.mk>
diff -r 4fc1aeec541f -r 4b57d03ea18a external/bsd/mdocml/Makefile.inc
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/external/bsd/mdocml/Makefile.inc Wed Oct 21 18:04:52 2009 +0000
@@ -0,0 +1,18 @@
+# $NetBSD: Makefile.inc,v 1.1 2009/10/21 18:04:52 joerg Exp $
+
+.include <bsd.own.mk>
+
+VERSION= 1.9.9
+
+CPPFLAGS+= -DVERSION=\"${VERSION}\"
+
+DISTDIR:= ${.PARSEDIR}/dist
+
+.PATH: ${DISTDIR}
+
+.for _LIB in man mdoc
+MDOCMLOBJDIR.${_LIB} != cd ${.PARSEDIR}/lib/lib${_LIB} && ${PRINTOBJDIR}
+MDOCMLLIB.${_LIB}= ${MDOCMLOBJDIR.${_LIB}}/lib${_LIB}.a
+.endfor
+
+WARNS?= 4
diff -r 4fc1aeec541f -r 4b57d03ea18a external/bsd/mdocml/bin/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/external/bsd/mdocml/bin/Makefile Wed Oct 21 18:04:52 2009 +0000
@@ -0,0 +1,5 @@
+# $NetBSD: Makefile,v 1.1 2009/10/21 18:04:52 joerg Exp $
+
+SUBDIR= mandoc
+
+.include <bsd.subdir.mk>
diff -r 4fc1aeec541f -r 4b57d03ea18a external/bsd/mdocml/bin/Makefile.inc
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/external/bsd/mdocml/bin/Makefile.inc Wed Oct 21 18:04:52 2009 +0000
@@ -0,0 +1,3 @@
+# $NetBSD: Makefile.inc,v 1.1 2009/10/21 18:04:52 joerg Exp $
+
+.include "${.PARSEDIR}/../Makefile.inc"
diff -r 4fc1aeec541f -r 4b57d03ea18a external/bsd/mdocml/bin/mandoc/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/external/bsd/mdocml/bin/mandoc/Makefile Wed Oct 21 18:04:52 2009 +0000
@@ -0,0 +1,20 @@
+# $NetBSD: Makefile,v 1.1 2009/10/21 18:04:52 joerg Exp $
+
+.include <bsd.own.mk>
+
+PROG= mandoc
+
+SRCS= main.c mdoc_term.c chars.c term.c tree.c compat.c \
+ man_term.c html.c mdoc_html.c man_html.c out.c
+
+.ifndef HOSTPROG
+DPADD+= ${MDOCMLLIB.man} ${MDOCMLLIB.mdoc}
+LDADD+= -L${MDOCMLOBJDIR.man} -lman -L${MDOCMLOBJDIR.mdoc} -lmdoc
+.else
+SRCS.libman!= cd ${.PARSEDIR}/../../lib/libman && ${MAKE} -V '$${SRCS}'
+SRCS.libmdoc!= cd ${.PARSEDIR}/../../lib/libmdoc && ${MAKE} -V '$${SRCS}'
+
+SRCS+= ${SRCS.libman} ${SRCS.libmdoc:Nmandoc.c}
+.endif
+
+.include <bsd.prog.mk>
diff -r 4fc1aeec541f -r 4b57d03ea18a external/bsd/mdocml/lib/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/external/bsd/mdocml/lib/Makefile Wed Oct 21 18:04:52 2009 +0000
@@ -0,0 +1,5 @@
+# $NetBSD: Makefile,v 1.1 2009/10/21 18:04:52 joerg Exp $
+
+SUBDIR= libman libmdoc
+
+.include <bsd.subdir.mk>
diff -r 4fc1aeec541f -r 4b57d03ea18a external/bsd/mdocml/lib/Makefile.inc
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/external/bsd/mdocml/lib/Makefile.inc Wed Oct 21 18:04:52 2009 +0000
@@ -0,0 +1,3 @@
+# $NetBSD: Makefile.inc,v 1.1 2009/10/21 18:04:52 joerg Exp $
+
+.include "${.PARSEDIR}/../Makefile.inc"
diff -r 4fc1aeec541f -r 4b57d03ea18a external/bsd/mdocml/lib/libman/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/external/bsd/mdocml/lib/libman/Makefile Wed Oct 21 18:04:52 2009 +0000
@@ -0,0 +1,10 @@
+# $NetBSD: Makefile,v 1.1 2009/10/21 18:04:52 joerg Exp $
+
+LIBISPRIVATE= yes
+
+LIB= man
+SRCS= man_macro.c man.c man_hash.c man_validate.c \
+ man_action.c mandoc.c man_argv.c
+MAN= mdoc.3
+
+.include <bsd.lib.mk>
diff -r 4fc1aeec541f -r 4b57d03ea18a external/bsd/mdocml/lib/libmdoc/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/external/bsd/mdocml/lib/libmdoc/Makefile Wed Oct 21 18:04:52 2009 +0000
@@ -0,0 +1,11 @@
+# $NetBSD: Makefile,v 1.1 2009/10/21 18:04:52 joerg Exp $
+
+LIBISPRIVATE= yes
+
+LIB= mdoc
+SRCS= mdoc_macro.c mdoc.c mdoc_hash.c mdoc_strings.c \
+ mdoc_argv.c mdoc_validate.c mdoc_action.c lib.c att.c \
+ arch.c vol.c msec.c st.c mandoc.c
+MAN= man.3
+
+.include <bsd.lib.mk>
diff -r 4fc1aeec541f -r 4b57d03ea18a external/bsd/mdocml/man/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/external/bsd/mdocml/man/Makefile Wed Oct 21 18:04:52 2009 +0000
@@ -0,0 +1,19 @@
+# $NetBSD: Makefile,v 1.1 2009/10/21 18:04:52 joerg Exp $
+
+MAN= mandoc_man.7 mandoc_char.7 mandoc_mdoc.7 manuals.7
+
+.include <bsd.init.mk>
+
+mandoc_man.7:
+ ${_MKTARGET_CREATE}
+ rm -f ${.TARGET}
+ ${TOOL_CAT} ${DISTDIR}/man.7 > ${.TARGET}
+
+mandoc_mdoc.7:
+ ${_MKTARGET_CREATE}
+ rm -f ${.TARGET}
+ ${TOOL_CAT} ${DISTDIR}/mdoc.7 > ${.TARGET}
+
+CLEANFILES+= mandoc_man.7 mandoc_mdoc.7
+
+.include <bsd.man.mk>
diff -r 4fc1aeec541f -r 4b57d03ea18a external/bsd/mdocml/prepare-import.sh
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/external/bsd/mdocml/prepare-import.sh Wed Oct 21 18:04:52 2009 +0000
@@ -0,0 +1,14 @@
+#/bin/sh
+
+set -e
+
+cd dist
+rm -rf ChangeLog.xsl Makefile example.style.css index.css *.sgml
+
+uuencode external.png < external.png > external.png.uu
+
+rm external.png
+
+for f in [a-z]*; do
+ sed 's/\$Id: prepare-import.sh,v 1.1 2009/10/21 18:04:52 joerg Exp $Vendor-Id:/' < $f > $f.new && mv $f.new $f
+done
diff -r 4fc1aeec541f -r 4b57d03ea18a tools/mandoc/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/tools/mandoc/Makefile Wed Oct 21 18:04:52 2009 +0000
@@ -0,0 +1,6 @@
+# $NetBSD: Makefile,v 1.1 2009/10/21 18:04:52 joerg Exp $
+
+HOSTPROGNAME= ${_TOOL_PREFIX}mandoc
+HOST_SRCDIR= external/bsd/mdocml/bin/mandoc
+
+.include "${.CURDIR}/../Makefile.host"
Home |
Main Index |
Thread Index |
Old Index