diff options
author | Hans Ulrich Niedermann <gp@n-dimensional.de> | 2002-06-04 19:03:16 +0000 |
---|---|---|
committer | Hans Ulrich Niedermann <gp@n-dimensional.de> | 2002-06-04 19:03:16 +0000 |
commit | d0bd9529af265ada96365dff4b5a1cf49a58b167 (patch) | |
tree | 4133a825813a7696ebb94604f126355fc9ed6405 /doc | |
parent | 8faca628ceed07f8787001dbf9c7848f1f5b8031 (diff) | |
download | libgphoto2-d0bd9529af265ada96365dff4b5a1cf49a58b167.tar.gz |
try to build manual/ only if "xmlto html" is possible
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@4607 67ed7778-7388-44ab-90cf-0a291f65f57c
Diffstat (limited to 'doc')
-rw-r--r-- | doc/Makefile.am | 21 |
1 files changed, 9 insertions, 12 deletions
diff --git a/doc/Makefile.am b/doc/Makefile.am index b04486b3a..6c72ec6c9 100644 --- a/doc/Makefile.am +++ b/doc/Makefile.am @@ -1,16 +1,13 @@ SUBDIRS = api figures # distribute manual Portable Document Format (PDF) if possible -# manual_pdf = gphoto2.pdf -manual_pdf = +manual_pdf = @manual_pdf@ # distribute manual in PostScript (PS) format if possible -# manual_ps = gphoto2.ps -manual_ps = +manual_ps = @manual_ps@ # build HTML manual if possible -manual_html = manual -# manual_html = +manual_html = @manual_html@ EXTRA_DIST = DAEMON build_OS2.txt \ camlib_devel.lyx \ @@ -71,11 +68,9 @@ endif if XMLTOHTML # do not empty this variable -manual_dir=manual - htmldir=@HTML_DIR@ -TARGET_DIR=$(htmldir)/$(manual_dir) +TARGET_DIR=$(htmldir)/manual manual: gphoto2.xml xmlto html -o "$@" "$<" @@ -83,16 +78,17 @@ manual: gphoto2.xml clean_local_manual = clean-local-manual clean-local-manual: - rm -rf "$(manual_dir)/" + rm -rf "manual/" install_data_local_manual = install-data-local-manual install-data-local-manual: $(INSTALL) -d -m 0755 $(DESTDIR)$(TARGET_DIR) - $(INSTALL_DATA) ./$(manual_dir)/*.html $(DESTDIR)$(TARGET_DIR) + $(INSTALL_DATA) ./manual/*.html $(DESTDIR)$(TARGET_DIR) dist_hook_manual = dist-hook-manual dist-hook-manual: - (cd $(srcdir) ; tar cvf - $(manual_dir)) | (cd $(distdir); tar xf -) + (cd $(srcdir) ; tar cvf - manual/) | (cd $(distdir); tar xf -) + (cd $(srcdir) ; tar cvf - $(figure_dir)) | (cd $(distdir)/manual/; tar xf -) endif ######################################################################## @@ -109,4 +105,5 @@ dist-hook: $(dist_hook_manual) @echo "Dummy $@ target" all-local: $(man_MANS) $(manual_pdf) $(manual_ps) $(manual_html) + -(cd $(manual_dir) && ln -s ../figures) @echo "Dummy $@ target" |