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>
This commit is contained in:
Gaetan Nadon 2010-02-02 16:29:26 -05:00
parent 137d1ff6be
commit e66eda95b5
4 changed files with 26 additions and 10 deletions

View file

@ -26,5 +26,3 @@
doc_sources = xim.ms
include $(top_srcdir)/specs/troffrules.in

View file

@ -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

View file

@ -54,6 +54,3 @@ doc_includes = \
include $(top_srcdir)/specs/troffrules.in
EXTRA_DIST += $(doc_includes)

View file

@ -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