1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

Fix 'make undocumented' (by hardcoding the source path, now that the docs

live in the same git repo)
This commit is contained in:
Jelmer Vernooij 2009-05-01 04:40:55 +02:00
parent 6e48495ee7
commit 4abc5c945e
4 changed files with 2 additions and 34 deletions

View File

@ -28,7 +28,7 @@ endif
OUTPUTDIR = output
ARCHIVEDIR = archive
TEXINFODIR = $(OUTPUTDIR)/texi
SRCDIR = @SAMBASOURCEDIR@
SRCDIR = ../source3
EPSTOPDF = @EPSTOPDF@
MANPAGEDIR3 = manpages-3
MAKEINDEX = @MAKEINDEX@

26
docs-xml/aclocal.m4 vendored
View File

@ -36,29 +36,3 @@ AC_DEFUN(DOCS_TARGET_REQUIRE_PROGRAM, [
fi
fi
])
dnl DOCS_TARGET_REQUIRE_DIR
dnl arg1: list of possible paths
dnl arg2: file in dir know to exist
dnl arg3: variable to store found path in
dnl arg4: target that requires it
AC_DEFUN(DOCS_TARGET_REQUIRE_DIR, [
AC_MSG_CHECKING([for $2])
AC_SUBST($3)
for I in $1;
do
test -f "$I/$2" && $3="$I"
done
if test x$$3 = x; then
if test x"$$4_REQUIRES" = x; then
$4_REQUIRES="$3"
else
$4_REQUIRES="$$4_REQUIRES $3"
fi
AC_MSG_RESULT([not found])
else
AC_MSG_RESULT([found in $$3])
fi
])

View File

@ -1,9 +1,5 @@
AC_INIT(xslt/latex.xsl)
AC_ARG_WITH(samba-sources,
[ --with-samba-sources=DIR Specify path to Samba sources],
[ test "$withval" && SPECIFIED_SOURCEDIR="$withval" ])
LATEX_DOCUMENTCLASS_OPTIONS="letterpaper,11pt,openright,twoside"
AC_ARG_ENABLE(prentice-hall,
[ --enable-prentice-hall Produce Prentice-Hall compatible output],
@ -12,7 +8,6 @@ AC_SUBST(LATEX_DOCUMENTCLASS_OPTIONS)
DOC_BUILD_DATE=`date '+%d-%m-%Y'`
AC_SUBST(DOC_BUILD_DATE)
AC_SUBST(SAMBASOURCEDIR)
DOCS_TARGET_REQUIRE_PROGRAM(XSLTPROC, xsltproc, ALL)
DOCS_TARGET_REQUIRE_PROGRAM(RM, rm, ALL)
@ -63,7 +58,6 @@ DOCS_TARGET_REQUIRE_PROGRAM(XMLLINT, xmllint, VALIDATE)
DOCS_TARGET_REQUIRE_PROGRAM(FOP, fop, FOPDF)
DOCS_TARGET_REQUIRE_PROGRAM(DB2TEXI, docbook2x-texi, TEXI)
DOCS_TARGET_REQUIRE_PROGRAM(MAKEINFO, makeinfo, TEXIINFO)
DOCS_TARGET_REQUIRE_DIR([$SPECIFIED_SOURCEDIR $SPECIFIED_SOURCEDIR/source ..], [param/loadparm.c], SAMBASOURCEDIR, UNDOCUMENTED)
AC_MSG_RESULT([])
AC_MSG_RESULT([Summary:])

View File

@ -32,7 +32,7 @@ foreach(split(/bin\//, $progs)) {
$found = 0;
for($i = 0; $i < 9; $i++) {
if(-e "manpages/$f.$i.xml") { $found = 1; }
if(-e "manpages-3/$f.$i.xml") { $found = 1; }
}
if(!$found) {