File: Makefile.am

package info (click to toggle)
imagination 3.6-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 12,460 kB
  • sloc: ansic: 12,955; sh: 4,166; makefile: 376; xml: 61
file content (58 lines) | stat: -rw-r--r-- 1,476 bytes parent folder | download | duplicates (7)
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
# $Id$

SUBDIRS =								\
	images

TARGET_DIR = $(datadir)/doc/imagination/html/en
STYLESHEET = ../imagination.xsl
DOCUMENT = imagination.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)

all-local: html-build.stamp

html-build.stamp: $(srcdir)/$(DOCUMENT) $(srcdir)/$(STYLESHEET)
	@echo "*** Building English documentation ***"
	@-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

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)/*

dist-check-xsltproc: all

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: