Repository navigation
Expand file tree
/
Copy pathMakefile
More file actions
70 lines (51 loc) · 1.93 KB
/
Copy pathMakefile
File metadata and controls
70 lines (51 loc) · 1.93 KB
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
# ivoatex Makefile. The ivoatex/README for the targets available.
# short name of your document (edit $DOCNAME.tex; would be like RegTAP)
DOCNAME = ADQL
# count up; you probably do not want to bother with versions <1.0
DOCVERSION = 2.2
# Publication date, ISO format; update manually for "releases"
DOCDATE = 2026-04-15
# What is it you're writing: NOTE, WD, PR, or REC
DOCTYPE = WD
# IVOA group submitting this document
IVOA_GROUP = DAL
# An e-mail address of the person doing the submission to the document
# repository (can be empty until a make upload is being made)
#AUTHOR_EMAIL=
# Source files for the TeX document (but the main file must always
# be called $(DOCNAME).tex
ROLE_DIAGRAM = role_diagram
SOURCES = $(DOCNAME).tex ivoa-cite.tex $(ROLE_DIAGRAM).pdf
# List of pixel image files to be included in submitted package
FIGURES = role_diagram.svg
# List of PDF figures (for vector graphics)
VECTORFIGURES =
# Additional files to distribute (e.g., CSS, schema files, examples...)
BNF = bnf/adql-bnf
AUX_FILES = $(BNF).txt $(BNF).html
-include ivoatex/Makefile
# Shortcut aliases
pdf: $(DOCNAME).pdf
draft: $(DOCNAME)-draft.pdf
html: $(DOCNAME).html
zip: package
bnf: $(BNF).html
# Custom target for generating a hyperlinked HTML version of the BNF.
# This is not currently run by default during the build.
BNFHTML_INTRO = \
<p>The SELECT statement is found at \
<a href='\#query_specification'>\<query_specification\></a>. \
</p>
$(BNF).html: $(BNF).txt
@( echo "ADQL ${DOCVERSION}"; cat $< ) \
| perl bnf/bnf2html.pl \
| sed -e's/#xref- */#xref-/g' \
-e's/href="# */href="#/g' \
-e's/name=" */name="/g' \
-e's/< */\</g' \
| sed -e"s%</h1>%</h1>\n$(BNFHTML_INTRO)%" \
> $@ && echo "=> HTML version of BNF successfully generated in: $@"
clean-all: clean
rm -f $(DOCNAME)-draft.pdf
rm -f $(ROLE_DIAGRAM).pdf $(ROLE_DIAGRAM).svg
rm -f $(BNF).html