fixing 'make dist' issues
[oweals/gnunet.git] / doc / Makefile.am
index 3e9790a8a49114be62b5fb30ccd6cec402c8fbb2..4443b42f89757caddd9fa4977835a1e993e5584b 100644 (file)
 # This Makefile.am is in the public domain
-SUBDIRS = man doxygen
-
-docdir = $(datadir)/doc/gnunet/
-
-gnunet_doc_images = \
-       images/gnunet-gtk-0-10-gns-a-done.png \
-       images/gnunet-gtk-0-10-gns-a.png \
-       images/daemon_lego_block.png \
-       images/gnunet-gtk-0-10-gns.png \
-       images/gnunet-0-10-peerinfo.png \
-       images/gnunet-gtk-0-10-identity.png \
-       images/gnunet-fs-gtk-0-10-star-tab.png \
-       images/gnunet-gtk-0-10.png \
-       images/gnunet-gtk-0-10-download-area.png \
-       images/gnunet-gtk-0-10-search-selected.png \
-       images/gnunet-gtk-0-10-fs-menu.png \
-       images/gnunet-gtk-0-10-traffic.png \
-       images/gnunet-gtk-0-10-fs.png \
-       images/gnunet-namestore-gtk-phone.png \
-       images/gnunet-gtk-0-10-fs-publish-editing.png \
-       images/gnunet-namestore-gtk-vpn.png \
-       images/gnunet-gtk-0-10-fs-published.png \
-       images/gnunet-setup-exit.png \
-       images/gnunet-gtk-0-10-fs-publish.png \
-       images/iceweasel-preferences.png \
-       images/gnunet-gtk-0-10-fs-publish-select.png \
-       images/iceweasel-proxy.png \
-       images/gnunet-gtk-0-10-fs-publish-with-file_0.png \
-       images/service_lego_block.png \
-       images/gnunet-gtk-0-10-fs-publish-with-file.png \
-       images/service_stack.png \
-       images/gnunet-gtk-0-10-fs-search.png
-
-gnunet_tutorial_examples =                                     \
-       001.c                                                   \
-       002.c                                                   \
-       003.c                                                   \
-       004.c                                                   \
-       005.c                                                   \
-       006.c                                                   \
-       007.c                                                   \
-       008.c                                                   \
-       009.c                                                   \
-       010.c                                                   \
-       011.c                                                   \
-       012.c                                                   \
-       013.c                                                   \
-       014.c                                                   \
-       015.c                                                   \
-       016.c                                                   \
-       017.c                                                   \
-       018.c                                                   \
-       019.c                                                   \
-       020.c                                                   \
-       021.c                                                   \
-       022.c                                                   \
-       023.c                                                   \
-       024.c                                                   \
-       025.c                                                   \
-       026.c
-
-info_TEXINFOS = \
-       gnunet.texi \
-       gnunet-c-tutorial.texi
-
-gnunet_TEXINFOS = \
-       chapters/developer.texi \
-       chapters/installation.texi \
-       chapters/philosophy.texi \
-       chapters/user.texi \
-       fdl-1.3.texi \
-       gpl-3.0.texi
-
-EXTRA_DIST = \
-       $(gnunet_TEXINFOS) \
-       $(gnunet_doc_images) \
-       $(gnunet_tutorial_examples) \
-       outdated-and-old-installation-instructions.txt
-
-version.texi:
-       echo "@set UPDATED $(date +'%d %B %Y')" > $@
-       echo "@set UPDATED-MONTH $(date +'%B %Y')" >> $@
-       echo "@set EDITION $(PACKAGE_VERSION)" >> $@
-       echo "@set VERSION $(PACKAGE_VERSION)" >> $@ 
-
-doc-pdf: version.texi
-       @makeinfo --pdf --quiet gnunet.texi
-doc-pdf-tutorial: version.texi
-       @makeinfo --pdf --quiet gnunet-c-tutorial.texi
-
-doc-html: version.texi
-       @makeinfo --html gnunet.texi
-doc-html-tutorial: version.texi
-       @makeinfo --html gnunet-c-tutorial.texi
-
-doc-info: version.texi
-       @makeinfo --no-split gnunet.texi
-doc-info-tutorial: version.texi
-       @makeinfo --no-split gnunet-c-tutorial.texi
-
-# FIXME: rm *.html and *.pdf
-doc-clean:
-       @rm *.aux *.log *.toc *.cp *.cps
-
-doc-all: doc-pdf doc-html doc-info doc-pdf-tutorial doc-html-tutorial doc-info-tutorial
-
-doc-pdf-noise: version.texi
-       @makeinfo --pdf gnunet.texi
-doc-pdf-tutorial-noise: version.texi
-       @makeinfo --pdf gnunet-c-tutorial.texi
-
-doc-html-noise: version.texi
-       @makeinfo --html gnunet.texi
-doc-html-tutorial-noise: version.texi
-       @makeinfo --html gnunet-c-tutorial.texi
-
-doc-info-noise: version.texi
-       @makeinfo --no-split gnunet.texi
-doc-info-tutorial-noise: version.texi
-       @makeinfo --no-split gnunet-c-tutorial.texi
-
-doc-all-give-me-the-noise: doc-pdf-noise doc-html-noise doc-info-noise doc-pdf-tutorial-noise doc-html-tutorial-noise doc-info-tutorial-noise
-
-.PHONY: version.texi
+if DOCUMENTATION
+  SUBDIRS = man doxygen handbook tutorial
+endif
+if !DOCUMENTATION
+  SUBDIRS = man doxygen
+endif
+
+EXTRA_DIST =                                                   \
+       system_specific/outdated-and-old-installation-instructions.txt \
+       system_specific/FROM_SOURCE