diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-07-04 22:38:03 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-07-04 22:38:03 +0000 |
commit | dadc34655c3ab961b0b0b94a10eaaba710f0b5e8 (patch) | |
tree | 99e72842fe687baea16376a147619b6048d7e441 /developer-doc/phb/Makefile.am | |
download | kmymoney-dadc34655c3ab961b0b0b94a10eaaba710f0b5e8.tar.gz kmymoney-dadc34655c3ab961b0b0b94a10eaaba710f0b5e8.zip |
Added kmymoney
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kmymoney@1239792 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'developer-doc/phb/Makefile.am')
-rw-r--r-- | developer-doc/phb/Makefile.am | 115 |
1 files changed, 115 insertions, 0 deletions
diff --git a/developer-doc/phb/Makefile.am b/developer-doc/phb/Makefile.am new file mode 100644 index 0000000..a99d2d9 --- /dev/null +++ b/developer-doc/phb/Makefile.am @@ -0,0 +1,115 @@ +KDE_OPTIONS = noautodist + +DOCBOOK_FILES = phb.docbook cfg-mgmt.docbook coding.docbook cvs-examples.docbook src-examples.docbook licence.docbook error-mgmt.docbook unit-test.docbook rel-mgmt.docbook test-examples.docbook rpm-example.docbook fdl-licence translation.docbook dialogs.docbook documentation.docbook settings.docbook submissions.docbook + +EXTRA_DIST = $(DOCBOOK_FILES) + +MOSTLYCLEANFILES = *.html *.pdf *.ps phb.docbook.tex online-phb.tar.bz2 + +TARGETS = phb.html + +if GENERATE_PDF +PDF_TARGET = kmymoney-phb.pdf +endif + +.PHONY: all show preview get-files clear-files web +all: $(TARGETS) $(PDF_TARGET) + +STYLESHEET = kde-nochunk.xsl + +phb.html: $(DOCBOOK_FILES) + @if test -e $(MEINPROC); then \ + echo $(MEINPROC) --stylesheet $(kde_libs_prefix)/share/apps/ksgmltools2/customization/$(STYLESHEET) $(srcdir)/phb.docbook -o phb.html; \ + echo sed -i "s/ISO-8859-1/UTF-8/g" phb.html; \ + $(MEINPROC) --stylesheet $(kde_libs_prefix)/share/apps/ksgmltools2/customization/$(STYLESHEET) $(srcdir)/phb.docbook --stdout | sed "s/ISO-8859-1/UTF-8/g" > phb.html; \ + fi + +preview: phb.html + +show: preview + konqueror phb.html + +# if we're in a VPATH environment, we need to copy all files over +# to the build directory. Otherwise, we'll get into trouble. Of course +# we delete them afterwards. +get-files: + if test -n "$(VPATH)" ; then \ + if test x$(VPATH) != x.; then \ + for file in $(DOCBOOK_FILES) $(SCREENSHOT_FILES); do \ + cp $(srcdir)/$$file .; \ + chmod +w $$file; \ + done; \ + fi \ + fi + +clear-files: + if test -n "$(VPATH)" ; then \ + if test x$(VPATH) != x.; then \ + for file in $(DOCBOOK_FILES) $(SCREENSHOT_FILES); do chmod +w $$file; rm $$file; done; \ + fi \ + fi + + +web: phb/index.html + +phb/index.html: $(DOCBOOK_FILES) + if test -x $(abs_top_srcdir)/contrib/splitup-kde-chunk-online; then \ + rm -rf phb common; \ + mkdir phb; \ + mkdir common; \ + $(MEINPROC) --stylesheet `dirname $(KDE_XSL_STYLESHEET)`/kde-chunk-online.xsl $(srcdir)/phb.docbook -o phb/index.xml; \ + cd phb; \ + $(abs_top_srcdir)/contrib/splitup-kde-chunk-online; \ + rm index.xml; \ + cd ..; \ + make get-files; \ + for file in $(SCREENSHOT_FILES); do \ + cp $$file phb; \ + done; \ + make clear-files; \ + cp $(kde_libs_htmldir)/en/common/* common; \ + if test ! -z "$(PDF_TARGET)"; then \ + cp $(PDF_TARGET) phb; \ + fi; \ + fi; + +sf-username: + @if test -z $(SF_USER); then \ + echo "The environment variable SF_USER must be set to your"; \ + echo "SourceForge username and you must have write access"; \ + echo "to the project space before the upload will work."; \ + exit 1; \ + fi; + + +web-upload: sf-username web + if test -e common; then \ + echo "cd htdocs/common" > upload.batch; \ + echo "rm *" >> upload.batch; \ + echo lcd common >> upload.batch; \ + echo "mput *" >> upload.batch; \ + echo cd ../phb >> upload.batch; \ + echo "rm *" >> upload.batch; \ + echo lcd ../phb >> upload.batch; \ + echo "mput *" >> upload.batch; \ + echo "rm index.xml"; \ + echo "Uploading prject handbook files to web.sourceforge.net"; \ + sftp -b upload.batch $(SF_USER),kmymoney2@web.sourceforge.net; \ + rm -rf upload.batch; \ + fi; + +# if we're in a VPATH environment, we need to copy all files over +# to the build directory. Otherwise, we'll get into trouble. Of course +# we delete them afterwards. + +if GENERATE_PDF +kmymoney-phb.pdf: $(DOCBOOK_FILES) + $(MAKE) get-files + $(MEINPROC) --stylesheet `dirname $(KDE_XSL_STYLESHEET)`/kde-nochunk.xsl $(srcdir)/phb.docbook -o index.html + recode utf8..latin1 index.html + html2ps -o kmymoney-phb.ps -n index.html + ps2pdf kmymoney-phb.ps kmymoney-phb.pdf + rm index.html kmymoney-phb.ps + $(MAKE) clear-files +endif + |