forked from riscv/riscv-bitmanip
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
34 lines (27 loc) · 894 Bytes
/
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
DATE=$(shell date +%Y%m%d)
VERSION=$(shell git describe --tag --always --dirty)
bitmanip-$(VERSION).pdf: bitmanip/bitmanip.adoc \
bitmanip/*.adoc \
bitmanip/insns/*.adoc \
bitmanip/autogenerated/revision.adoc-snippet
asciidoctor-pdf -r asciidoctor-diagram \
-D . \
-a toc \
-a compress \
-a pdf-style=resources/themes/risc-v_spec-pdf.yml \
-a pdf-fontsdir=resources/fonts \
-o $@ \
$<
asciidoctor-pdf-optimize --quality printer $@
DATE=$(shell date +%Y.%m.%d)
VERSION=$(shell git describe --tag --always --dirty)
COMMITDATE=$(shell git show -s --format=%ci | cut -d ' ' -f 1)
bitmanip/autogenerated:
-mkdir $@
bitmanip/autogenerated/revision.adoc-snippet: Makefile bitmanip/autogenerated FORCE
echo ":revdate: ${COMMITDATE}" > $@
echo ":revnumber: ${VERSION}" >> $@
echo ":revremark: Release candidate" >> $@
clean:
rm -f bitmanip-*.pdf
FORCE: