6
TARGET_DIR = $(datadir)/doc/imagination/html/fr
7
STYLESHEET = ../imagination.xsl
8
DOCUMENT = imagination.xml
10
# We set GPATH here; this gives us semantics for GNU make
11
# which are more like other make's VPATH, when it comes to
12
# whether a source that is a target of one rule is then
13
# searched for in VPATH/GPATH.
16
DOC_STAMPS = html-build.stamp
18
EXTRA_DIST = $(DOCUMENT)
19
CLEANFILES = $(DOC_STAMPS)
21
all-local: html-build.stamp
23
html-build.stamp: $(srcdir)/$(DOCUMENT) $(srcdir)/$(STYLESHEET)
24
@echo "*** Building French documentation ***"
25
@-chmod -R u+w $(srcdir)
28
$(XSLTPROC) --nonet -o $(srcdir)/html/ $(srcdir)/$(STYLESHEET) \
30
touch html-build.stamp
32
maintainer-clean-local: clean
33
(cd $(srcdir) && rm -rf html)
36
installfiles=`echo $(srcdir)/html/*`; \
37
if test "$$installfiles" = '$(srcdir)/html/*'; then \
38
echo "--- Nothing to install"; \
40
$(mkinstalldirs) $(DESTDIR)$(TARGET_DIR); \
41
for file in $$installfiles; do \
42
echo "--- Installing "$$file; \
43
$(INSTALL_DATA) $$file $(DESTDIR)$(TARGET_DIR); \
48
rm -rf $(DESTDIR)$(TARGET_DIR)/*
50
dist-check-xsltproc: all
52
dist-hook: dist-check-xsltproc dist-hook-local
54
-cp $(srcdir)/html/* $(distdir)/html
56
.PHONY: dist-hook-local
58
# vi:set ts=8 sw=8 noet ai nocindent syntax=automake: