The following gets make doc-books to succeed for me : the other doc-{ps,pdf,html} targets still fail, either due to non-zero return codes from userspace tools ( db2xxx ), or because of a bug in pp_makefile5.c ( do_dependencies ) which makes it always see non-zero return codes ( a quick test using $(objfile /scripts/pp_makefile5) --target=$@ --type=USER --command="/bin/true" suggests the latter, and I can manually build the targets OK ).
BTW, to maintain consistency with existing kbuild practice, the target and command should work like --target=$(notdir $@) --command="cd $(objdir) && db2xxx $(notdir $<)" Jak --- linux-2.4/Documentation/DocBook/Makefile.in Thu Jun 27 22:18:04 2002 +++ 2.4-src010/Documentation/DocBook/Makefile.in Thu Jul 4 11:18:21 2002 @@ -28,7 +28,7 @@ $(BOOKS): $(objfile /scripts/docproc) \ $(srcfile /scripts/docgen) \ - $(srcfile /scripts/gen-all-syms) \ + $(objfile /scripts/gen-all-syms) \ $(objfile /scripts/kernel-doc) .PHONY: doc-books doc-ps doc-pdf doc-html @@ -208,18 +208,18 @@ @(which db2ps > /dev/null 2>&1) || \ (echo "*** You need to install DocBook stylesheets ***"; \ exit 1) - $(KBUILD_QUIET)$(objfile /scripts/pp_makefile5) --target=$@ --usercommand="db2ps $<" + $(KBUILD_QUIET)$(objfile /scripts/pp_makefile5) --target=$@ --type=USER +--command="db2ps $<" $(objfile %.pdf) : $(objfile %.sgml) @(which db2pdf > /dev/null 2>&1) || \ (echo "*** You need to install DocBook stylesheets ***"; \ exit 1) - $(KBUILD_QUIET)$(objfile /scripts/pp_makefile5) --target=$@ --usercommand="db2pdf $<" + $(KBUILD_QUIET)$(objfile /scripts/pp_makefile5) --target=$@ --type=USER +--command="db2pdf $<" $(objfile %): $(objfile %.sgml) @(which db2html > /dev/null 2>&1) || \ (echo "*** You need to install DocBook stylesheets ***"; \ exit 1) $(KBUILD_QUIET)rm -rf $@ - $(KBUILD_QUIET)$(objfile /scripts/pp_makefile5) --target=$@ --usercommand="db2html $<" + $(KBUILD_QUIET)$(objfile /scripts/pp_makefile5) --target=$@ --type=USER +--command="db2html $<" $(KBUILD_QUIET)if [ ! -z "$(PNG-$@)" ]; then cp -fa $(PNG-$@) $@; fi --- linux-2.4/scripts/Makefile.in Thu Jun 27 22:18:04 2002 +++ 2.4-src010/scripts/Makefile.in Thu Jul 4 11:20:06 2002 @@ -15,6 +15,12 @@ (cp -fa $< $@) () ) +# gen-all-syms is also required +user_command(gen-all-syms + ($(srcfile_base gen-all-syms)) + (cp -fa $< $@) + () + ) endif # Docbook explicitly references $(objfile pp_makefile5) which marks it as a ### ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Caffeinated soap. No kidding. http://thinkgeek.com/sf _______________________________________________ kbuild-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/kbuild-devel