Index: am_edit =================================================================== RCS file: /home/kde/kde-common/admin/am_edit,v retrieving revision 1.412 diff -u -3 -p -r1.412 am_edit --- am_edit 17 Dec 2004 20:18:28 -0000 1.412 +++ am_edit 28 Jan 2005 20:52:57 -0000 @@ -2036,10 +2036,30 @@ sub tag_DOCFILES () $target_adds{"uninstall"} .= "uninstall-docs "; $target_adds{"clean-am"} .= "clean-docs "; appendLines ($lines); +) + if ($files =~ /(^| )man\.docbook($| )/) { + + my $lines = ""; + my $lookup = 'MEINPROC\s*='; + if ($MakefileData !~ /\n($lookup)/) { + $lines = "MEINPROC=/\$(kde_bindir)/meinproc\n"; + } + $lookup = 'KDE_XSL_STYLESHEET\s*='; + if ($MakefileData !~ /\n($lookup)/) { + $lines .= "KDE_XSL_STYLESHEET=/\$(kde_datadir)/ksgmltools2/customization/db2man.xsl\n"; + } + $lookup = '\nindex.cache.bz2:'; + if ($MakefileData !~ /\n($lookup)/) { + $lines .= "$appname.man \$(srcdir)/man.docbook \$(KDE_XSL_STYLESHEET) $files\n"; + $lines .= "\t\@if test -n \"\$(MEINPROC)\"; then echo \$(MEINPROC) --check --cache index.cache.bz2 \$(srcdir)/man.docbook; \$(MEINPROC) --check --cache index.cache.bz2 \$(srcdir)/man.docbook; fi\n"; + $lines .= "\n"; + } + appendLines ($lines); } else { appendLines("docs-am: $files\n"); } + $target_adds{"install-data-am"} .= "install-nls "; $target_adds{"uninstall"} .= "uninstall-nls ";