blob: 4d0cab457019a1b4e8a1ce23ca645b32fb31280a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
# $Id$
SUBDIRS = \
images
TARGET_DIR = $(datadir)/doc/Thunar/html/ja
STYLESHEET = ../thunar.xsl
DOCUMENT = Thunar.xml
# We set GPATH here; this gives us semantics for GNU make
# which are more like other make's VPATH, when it comes to
# whether a source that is a target of one rule is then
# searched for in VPATH/GPATH.
GPATH = $(srcdir)
DOC_STAMPS = html-build.stamp
EXTRA_DIST = $(DOCUMENT)
CLEANFILES = $(DOC_STAMPS)
if ENABLE_XSLTPROC
all-local: html-build.stamp
html-build.stamp: $(srcdir)/$(DOCUMENT) $(srcdir)/$(STYLESHEET)
@echo "*** Building HTML ***"
@-chmod -R u+w $(srcdir)
rm -rf $(srcdir)/html
mkdir $(srcdir)/html
$(XSLTPROC) --nonet -o $(srcdir)/html/ $(srcdir)/$(STYLESHEET) \
$(srcdir)/$(DOCUMENT)
touch html-build.stamp
else
all-local:
endif
maintainer-clean-local: clean
(cd $(srcdir) && rm -rf html)
install-data-local:
installfiles=`echo $(srcdir)/html/*`; \
if test "$$installfiles" = '$(srcdir)/html/*'; then \
echo "--- Nothing to install"; \
else \
$(mkinstalldirs) $(DESTDIR)$(TARGET_DIR); \
for file in $$installfiles; do \
echo "--- Installing "$$file; \
$(INSTALL_DATA) $$file $(DESTDIR)$(TARGET_DIR); \
done; \
fi
uninstall-local:
rm -rf $(DESTDIR)$(TARGET_DIR)/*
if ENABLE_XSLTPROC
dist-check-xsltproc: all
else
dist-check-xsltproc:
@echo "*** xsltproc must be installed and enabled in order to make dist"
@false
endif
dist-hook: dist-check-xsltproc dist-hook-local
mkdir $(distdir)/html
-cp $(srcdir)/html/* $(distdir)/html
.PHONY: dist-hook-local
# vi:set ts=8 sw=8 noet ai nocindent syntax=automake:
|