1
2EXTRA_DIST = \
3	$(crystalstructures_BIBXML) \
4	$(elements_BIBXML) \
5	$(crystal_DATA) \
6	$(element_DATA)
7
8CLEANFILES = \
9	*_biblio.bxml \
10	*_biblio.html
11
12MAINTAINERCLEANFILES = \
13	Makefile.in
14
15XMLLINT_FLAGS_XSD = --noout --schema $(top_srcdir)/schemas/cml25.xsd
16XMLLINT_FLAGS_SCHEMATRON = --noout --schematron $(top_srcdir)/schemas/elements.schematron
17
18crystalstructures_BIBXML = \
19	crystalstructures.bibxml
20
21elements_BIBXML = \
22	boilingpoint.bibxml \
23	crystalstructures.bibxml \
24	dates.bibxml \
25	electron-affinity.bibxml \
26	electroneg-pauling.bibxml \
27	electronic-configuration.bibxml \
28	exact-masses.bibxml \
29	ionization.bibxml \
30	mass.bibxml \
31	meltingpoint.bibxml \
32	names.bibxml \
33	radii-covalent.bibxml \
34	radii-vdw.bibxml \
35	symbols.bibxml
36
37
38vpath %.pl  $(top_srcdir)/scripts
39vpath %.rb  $(top_srcdir)/scripts
40vpath %.xsl $(top_srcdir)/bibtexml-xslt
41
42
43SUFFIXES = .html .bxml
44
45
46crystaldir = ${pkgdatadir}
47crystal_DATA = crystalstructures.xml
48
49elementdir = ${pkgdatadir}
50element_DATA = elements.xml
51
52docsdir = ${docdir}/biblio
53docs_DATA = elements_biblio.html crystalstructures_biblio.html
54
55crystalstructures_biblio.bxml : $(crystalstructures_BIBXML)
56	echo "<bx:file xmlns:bx='http://bibtexml.sf.net/'>" > $@
57	cat $^ >> $@
58	echo "</bx:file>" >> $@
59
60elements_biblio.bxml : $(elements_BIBXML)
61	echo "<bx:file xmlns:bx='http://bibtexml.sf.net/'>" > $@
62	cat $^ >> $@
63	echo "</bx:file>" >> $@
64
65.bxml.html:
66	$(XSLTPROC) $(XSLTPROC_FLAGS) $(top_srcdir)/bibtexml-xslt/html-harvard.xsl $< > $@
67
68
69check-local:
70if HAVE_XMLLINT
71	$(XMLLINT) $(XMLLINT_FLAGS_XSD) $(srcdir)/$(crystal_DATA)
72	$(XMLLINT) $(XMLLINT_FLAGS_SCHEMATRON) $(srcdir)/$(element_DATA)
73else
74	@echo "Warning: Cannot check the XML files because 'xmllint' is missing."
75endif
76
77