diff options
author | Gaetan Nadon <memsize@videotron.ca> | 2010-02-01 14:58:21 -0500 |
---|---|---|
committer | Gaetan Nadon <memsize@videotron.ca> | 2010-02-04 16:01:02 -0500 |
commit | c22a324b4c1e1ac38b1c04656ecdcf9127343e8d (patch) | |
tree | d41b375a87316d899c14ec17b141ee53886fe867 /doc | |
parent | 844a1de311492a7666c60f39c6cbe23a5c3f22da (diff) |
doc: install generated images in $docdir
The html installed doc is incomplete without the generated images.
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/Makefile.am | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/doc/Makefile.am b/doc/Makefile.am index eea436b..ef42872 100644 --- a/doc/Makefile.am +++ b/doc/Makefile.am @@ -30,10 +30,31 @@ EXTRA_DIST = $(doc_sources) if ENABLE_DOCS if HAVE_GROFF doc_DATA = SMlib.txt SMlib.ps SMlib.html xsmp.txt xsmp.ps xsmp.html +imagesdir = $(docdir)/images CLEANFILES = $(doc_DATA) MOSTLYCLEANFILES = index.* +install-data-local: + test -z "$(imagesdir)" || $(MKDIR_P) "$(DESTDIR)$(imagesdir)" + @d="$(srcdir)/images/"; \ + list=`ls $$d`; \ + for p in $$list; do \ + echo " $(docDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(imagesdir)/$$p'"; \ + $(docDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(imagesdir)/$$p"; \ + done; + +uninstall-local: + @if test -n $(DESTDIR)$(imagesdir); then \ + if test -d $(DESTDIR)$(imagesdir); then \ + list=`ls $(DESTDIR)$(imagesdir)`; \ + for p in $$list; do \ + echo " rm -f '$(DESTDIR)$(imagesdir)/$$p'"; \ + rm -f "$(DESTDIR)$(imagesdir)/$$p"; \ + done \ + fi; \ + fi; + mostlyclean-local: @rm -fr images |