File: Makefile.am

package info (click to toggle)
k3d 0.4.3.0-3
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 51,716 kB
  • ctags: 81,610
  • sloc: cpp: 283,698; ansic: 64,095; xml: 61,533; sh: 9,026; makefile: 5,282; python: 431; perl: 308; awk: 130
file content (56 lines) | stat: -rw-r--r-- 1,614 bytes parent folder | download
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
EXTRA_DIST = *.xml

docbook_sources = $(wildcard $(top_srcdir)/docs/user_reference/*.xml)

html_sources = \
 $(wildcard $(top_srcdir)/docs/user_reference/figure_sources/plugins/*.png) \
 $(wildcard $(top_srcdir)/docs/user_reference/figure_sources/tutorials/*.png) \
 $(wildcard $(top_srcdir)/docs/user_reference/figure_sources/userinterface/*.png) \
 $(wildcard $(top_srcdir)/docs/docbook/k3d/*.css) \
 $(wildcard $(top_srcdir)/docs/docbook/k3d/images/*.png)
 
install_dir = $(DESTDIR)$(datadir)/doc/k3d/user_reference

all-local: html
clean-local: html-clean
install-data-local: html-install
uninstall-local: html-uninstall

.PHONY: valid
valid:
	xmllint --valid --noout root.xml

.PHONY: html
html: html-build

html-build: $(docbook_sources) $(html_sources)
	xsltproc $(top_srcdir)/docs/docbook/k3d/chunk.xsl root.xml
	mkdir -p figures
	mkdir -p figures/plugins;
	mkdir -p figures/tutorials;
	mkdir -p figures/userinterface;
	cp $(top_srcdir)/docs/user_reference/figure_sources/plugins/*.png figures/plugins;
	cp $(top_srcdir)/docs/user_reference/figure_sources/tutorials/*.png figures/tutorials;
	cp $(top_srcdir)/docs/user_reference/figure_sources/userinterface/*.png figures/userinterface;
	cp $(top_srcdir)/docs/docbook/k3d/images/*.png figures
	cp $(top_srcdir)/docs/docbook/k3d/*.css .
	touch html-build

.PHONY: html-clean
html-clean:
	rm -rf *.css
	rm -rf *.html
	rm -rf html-build
	rm -rf figures

.PHONY: html-install
html-install:
	mkdir -p $(install_dir)
	cp *.css $(install_dir)
	cp *.html $(install_dir)
	cp -R figures $(install_dir)

.PHONY: html-uninstall
html-uninstall:
	rm -rf $(install_dir)