-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathMakefile
60 lines (43 loc) · 1.67 KB
/
Makefile
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
# 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.1
# Publication date, ISO format; update manually for "releases"
DOCDATE = 2023-11-07
# What is it you're writing: NOTE, WD, PR, or REC
DOCTYPE = PR
# 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
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 =
include ivoatex/Makefile
# Shortcut aliases
pdf: $(DOCNAME).pdf
draft: $(DOCNAME)-draft.pdf
html: $(DOCNAME).html
zip: package
bnf: adql-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>
adql-bnf.html: adql.bnf
@( echo "ADQL ${DOCVERSION}"; cat $< ) \
| perl 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: $@"