File: Makefile.am

package info (click to toggle)
bodr 10-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,544 kB
  • sloc: xml: 29,107; sh: 494; makefile: 182
file content (76 lines) | stat: -rw-r--r-- 1,733 bytes parent folder | download | duplicates (4)
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

EXTRA_DIST = \
	$(crystalstructures_BIBXML) \
	$(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_BIBXML = \
	crystalstructures.bibxml

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_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