File: Makefile

package info (click to toggle)
ecl 16.1.3%2Bds-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 18,600 kB
  • sloc: ansic: 147,936; lisp: 63,863; xml: 7,945; asm: 5,551; sh: 3,145; makefile: 1,950; cpp: 178; java: 116
file content (64 lines) | stat: -rw-r--r-- 2,452 bytes parent folder | download | duplicates (5)
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
XMLTO = xmlto
XSLTPROC = xsltproc

GEN_XMLFILES= tmp/COPYING.GFDL.xml
XMLFILES= ecl.xml bibliography.xmlf clos.xmlf compiler.xmlf			\
	declarations.xmlf ecldev.xmlf						\
	internals.xmlf interpreter.xmlf preface.xmlf				\
	io.xmlf mp.xmlf asdf.xmlf os.xmlf pde.xmlf				\
	copyright.xmlf ffi.xmlf ref_os.xmlf					\
	uffi/ref_primitive.xml uffi/ref_aggregate.xml uffi/ref_object.xml	\
	uffi/ref_string.xml uffi/ref_func_libr.xml				\
	mp.xmlf ref_mp.xmlf memory.xmlf ref_memory.xmlf				\
	mop.xmlf embed.xmlf ref_embed.xmlf signals.xmlf				\
	ansi_arrays.xml ansi_overview.xml					\
	ansi_characters.xml ansi_packages.xml ansi_conses.xml			\
	ansi_printer.xml ansi_data_flow.xml ansi_reader.xml			\
	ansi_environment.xml ansi_sequences.xml	ansi_evaluation.xml		\
	ansi_streams.xml ansi_filenames.xml ansi_strings.xml			\
	ansi_files.xml ansi_structures.xml ansi_hash_tables.xml			\
	ansi_symbols.xml ansi_numbers.xml ansi_system_construction.xml		\
	ansi_objects.xml ansi_types.xml						\
	ref_c_evaluation.xml ref_c_data_flow.xml ref_c_symbols.xml		\
	ref_c_numbers.xml ref_c_characters.xml ref_c_strings.xml		\
	ref_c_conses.xml ref_c_hash_tables.xml ref_c_sequences.xml		\
	ref_c_filenames.xml ref_c_packages.xml ref_c_printer.xml		\
	ref_c_system_construction.xml ref_c_environment.xml			\
	ref_c_objects.xml ref_c_conditions.xml ref_c_structures.xml		\
	ref_signals.xmlf ref_c_arrays.xml $(GEN_XMLFILES)

HTML_XSLFILES= xsl/customization.xml xsl/lispfunc.xml xsl/refentryintoc.xml
PDF_XSLFILES= xsl/customization.xml xsl/lispfunc-po.xml

all: html/ecl.css

ecl2.xml: $(XMLFILES) xsl/add_indexterm.xml
	@test -d html || mkdir html
	$(XSLTPROC) --xinclude xsl/add_indexterm.xml ecl.xml | \
	sed 's, xmlns="",,g;s,&#151,,g;' > ecl2.xml
html/index.html: ecl2.xml $(HTML_XSLFILES)
	$(XMLTO) -vv --skip-validation $(subst xsl, -m xsl,$(HTML_XSLFILES)) -o html html ecl2.xml
	cp ecl.css html/
html/ecl.css: ecl.css html/index.html
	cp ecl.css html/
	@test -d html/figures || mkdir html/figures
	cp figures/*.png html/figures/
ecl.pdf: ecl2.xml $(PDF_XSLFILES)
	-mkdir tex
	dblatex -V -d --tmpdir=tex -P latex.encoding=utf8 ecl2.xml
	mv ecl2.pdf $@

tmp/ecl.ent: ecl.ent
	cp $< $@

tmp/COPYING.GFDL.xml: COPYING.GFDL Makefile
	echo '<![CDATA[' > $@
	cat $< >> $@
	echo ']]>' >> $@

jing:
	jing -t -i /usr/local/Cellar/docbook/5.0/docbook/xml/5.0/rng/docbookxi.rnc ecl.xml

clean:
	rm -f tmp/ecl.ent ecl2.xml $(GEN_XMLFILES) html/*.html ecl.pdf
	rm -rf tex