File: Makefile.am

package info (click to toggle)
bodr 8-1
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 2,728 kB
  • ctags: 38
  • sloc: xml: 29,400; perl: 551; sh: 517; makefile: 231; ruby: 123
file content (111 lines) | stat: -rw-r--r-- 2,375 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111

EXTRA_DIST = \
	$(crystalstructures_SRCS) \
	$(crystalstructures_BIBXML) \
	$(elements_SRCS) \
	$(elements_BIBXML) \
	$(crystal_DATA) \
	$(element_DATA)

CLEANFILES = \
	*_biblio.bxml \
	*_biblio.html

MAINTAINERCLEANFILES = \
	Makefile.in

XMLLINT_FLAGS_XSD = --noout --schema $(top_srcdir)/schemas/cml25.xsd
XMLLINT_FLAGS_SCHEMATRON = --noout --schematron $(top_srcdir)/schemas/elements.schematron

crystalstructures_SRCS = \
	crystalstructures.txt

crystalstructures_BIBXML = \
	crystalstructures.bibxml

elements_SRCS = \
	acidicbehaviour.txt \
	blocks.txt \
	boilingpoint.txt \
	colors.txt \
	crystalstructures.txt \
	dates.txt \
	density.txt \
	electron-affinity.txt \
	electroneg-pauling.txt \
	electronic-configuration.txt \
	exact-masses.txt \
	family.txt \
	groups.txt \
	ionization.txt \
	mass.txt \
	meltingpoint.txt \
	nameorigin.txt \
	names.txt \
	periods.txt \
	radii-covalent.txt \
	radii-vdw.txt

elements_BIBXML = \
	boilingpoint.bibxml \
	crystalstructures.bibxml \
	dates.bibxml \
	electron-affinity.bibxml \
	electroneg-pauling.bibxml \
	electronic-configuration.bibxml \
	exact-masses.bibxml \
	ionization.bibxml \
	mass.bibxml \
	meltingpoint.bibxml \
	names.bibxml \
	radii-covalent.bibxml \
	radii-vdw.bibxml \
	symbols.bibxml


vpath %.pl  $(top_srcdir)/scripts
vpath %.rb  $(top_srcdir)/scripts
vpath %.xsl $(top_srcdir)/bibtexml-xslt


SUFFIXES = .html .bxml


crystaldir = ${pkgdatadir}
crystal_DATA = crystalstructures.xml

elementdir = ${pkgdatadir}
element_DATA = elements.xml

docsdir = ${docdir}/biblio
docs_DATA = elements_biblio.html crystalstructures_biblio.html


crystalstructures.xml : crystalstructure.rb $(crystalstructures_SRCS)
	$< > $@

elements.xml : elements.pl $(elements_SRCS)
	$< > $@

crystalstructures_biblio.bxml : $(crystalstructures_BIBXML)
	echo "<bx:file xmlns:bx='http://bibtexml.sf.net/'>" > $@
	cat $^ >> $@
	echo "</bx:file>" >> $@

elements_biblio.bxml : $(elements_BIBXML)
	echo "<bx:file xmlns:bx='http://bibtexml.sf.net/'>" > $@
	cat $^ >> $@
	echo "</bx:file>" >> $@

.bxml.html:
	$(XSLTPROC) $(XSLTPROC_FLAGS) $(top_srcdir)/bibtexml-xslt/html-harvard.xsl $< > $@


check-local:
if HAVE_XMLLINT
	$(XMLLINT) $(XMLLINT_FLAGS_XSD) $(srcdir)/$(crystal_DATA)
	$(XMLLINT) $(XMLLINT_FLAGS_SCHEMATRON) $(srcdir)/$(element_DATA)
else
	@echo "Warning: Cannot check the XML files because 'xmllint' is missing."
endif