diff options
author | Gaetan Nadon <memsize@videotron.ca> | 2010-02-02 16:29:26 -0500 |
---|---|---|
committer | Gaetan Nadon <memsize@videotron.ca> | 2010-02-05 08:57:46 -0500 |
commit | e66eda95b520727969d721416d4ea49b54ef2b03 (patch) | |
tree | cb2e8b35c49de969afa29f4620474fc5046fac2e | |
parent | 137d1ff6be99d040e77c8c4c52029c5bdf1f4808 (diff) |
specs: install html images in $docdir with html files
The images required by the html files have been omitted.
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
-rw-r--r-- | specs/XIM/Makefile.am | 2 | ||||
-rw-r--r-- | specs/i18n/Makefile.am | 4 | ||||
-rw-r--r-- | specs/libX11/Makefile.am | 3 | ||||
-rw-r--r-- | specs/troffrules.in | 27 |
4 files changed, 26 insertions, 10 deletions
diff --git a/specs/XIM/Makefile.am b/specs/XIM/Makefile.am index 89806bdc..c0368b90 100644 --- a/specs/XIM/Makefile.am +++ b/specs/XIM/Makefile.am @@ -26,5 +26,3 @@ doc_sources = xim.ms include $(top_srcdir)/specs/troffrules.in - - diff --git a/specs/i18n/Makefile.am b/specs/i18n/Makefile.am index 812ad015..7d3ac808 100644 --- a/specs/i18n/Makefile.am +++ b/specs/i18n/Makefile.am @@ -23,8 +23,6 @@ # Based on xc/doc/specs/i18n/Makefile from X11R6.9 -doc_sources = Framework.ms LocaleDB.ms Trans.ms +doc_sources = Framework.ms LocaleDB.ms Trans.ms include $(top_srcdir)/specs/troffrules.in - - diff --git a/specs/libX11/Makefile.am b/specs/libX11/Makefile.am index a9b813ab..7cf269f9 100644 --- a/specs/libX11/Makefile.am +++ b/specs/libX11/Makefile.am @@ -54,6 +54,3 @@ doc_includes = \ include $(top_srcdir)/specs/troffrules.in EXTRA_DIST += $(doc_includes) - - - diff --git a/specs/troffrules.in b/specs/troffrules.in index d4e44a09..af891209 100644 --- a/specs/troffrules.in +++ b/specs/troffrules.in @@ -33,13 +33,36 @@ endif if ENABLE_SPECS if HAVE_GROFF_MS -doc_DATA = $(doc_sources:.ms=.txt) \ +spec_DATA = $(doc_sources:.ms=.txt) \ $(doc_sources:.ms=$(printable_format)) \ $(doc_sources:.ms=.html) +specdir = $(docdir)/$(subdir) +imagesdir = $(specdir)/images -CLEANFILES = $(doc_DATA) +CLEANFILES = $(spec_DATA) MOSTLYCLEANFILES = index.* +# Install html generated images for specs +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'"; \ + $(specDATA_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 |