diff options
author | cristy <urban-warrior@git.imagemagick.org> | 2013-05-27 15:45:16 +0000 |
---|---|---|
committer | cristy <urban-warrior@git.imagemagick.org> | 2013-05-27 15:45:16 +0000 |
commit | 7c9c2bd4b54223bbddbe23c893403206ed7ab6a6 (patch) | |
tree | 4044a55bdf57b0dee01b7c3466c7f9b8f79924be /Makefile.am | |
parent | bc3596074486cb425ddb62b7763e7f1fea8a203a (diff) | |
download | ImageMagick-7c9c2bd4b54223bbddbe23c893403206ed7ab6a6.tar.gz |
Diffstat (limited to 'Makefile.am')
-rw-r--r-- | Makefile.am | 26 |
1 files changed, 21 insertions, 5 deletions
diff --git a/Makefile.am b/Makefile.am index 58bb26be0..a9a3f403a 100644 --- a/Makefile.am +++ b/Makefile.am @@ -239,14 +239,21 @@ dist-hook: # Install HTML files pkgdocdir = $(DOCUMENTATION_PATH) -DOCDIRS = images images/patterns www www/api www/source www/api/MagickCore www/api/MagickWand www/Magick++ +DOCDIRSDOXYGEN = www/api/MagickCore www/api/MagickWand +DOCDIRSMANUAL = images images/patterns www www/api www/source www/Magick++ +DOCDIRS= $(DOCDIRSMANUAL) $(DOCDIRSDOXYGEN) HTML_INSTALL_DATA_TARGETS = install-data-html install-data-html: $(mkinstalldirs) $(DESTDIR)$(pkgdocdir) $(INSTALL_DATA) $(srcdir)/index.html $(DESTDIR)$(pkgdocdir) @for dir in $(DOCDIRS) ; do \ $(mkinstalldirs) $(DESTDIR)$(pkgdocdir)/$$dir && \ - for file in $(srcdir)/$$dir/*.* ; do \ + if test -d $(builddir)/$$dir ; then \ + docsrcdir=$(builddir)/$$dir; \ + else \ + docsrcdir=$(srcdir)/$$dir; \ + fi; \ + for file in $$docsrcdir/*.* ; do \ echo "$(INSTALL_DATA) $$file $(DESTDIR)$(pkgdocdir)/$$dir" ; \ $(INSTALL_DATA) "$$file" $(DESTDIR)$(pkgdocdir)/$$dir ; \ done ; \ @@ -283,9 +290,18 @@ libtool: $(LIBTOOL_DEPS) # Format C API documentation html: - doxygen config/MagickCore.dox - doxygen config/MagickWand.dox - doxygen config/Magick++.dox + $(MKDIR_P) -p $(top_builddir)/www/api + cd config && doxygen MagickCore.dox + cd config && doxygen MagickWand.dox + cd config && doxygen Magick++.dox + for dir in $(DOCDIRSMANUAL) ; do \ + $(MKDIR_P) $(top_builddir)/$$dir ;\ + for file in $$dir/*.* ; do \ + if ! test -f $(top_builddir)/$$file; then \ + cp -f $(top_srcdir)/$$file $(top_builddir)/$$dir ; \ + fi; \ + done ; \ + done; # # Build Windows source Zip and 7Zip balls |