diff options
author | Eric Kunze <eric.kunze@arm.com> | 2020-10-01 18:50:46 -0700 |
---|---|---|
committer | Eric Kunze <eric.kunze@arm.com> | 2020-10-01 18:50:46 -0700 |
commit | 3309a5362a13f840e84a2f67b9ba7141aae58cc4 (patch) | |
tree | 74bde543bc11bf43208fa4b3789e2def23919890 /Makefile | |
parent | c92cb063a2ebfad2fd9ffd4c4a73184327b864ed (diff) | |
download | specification-3309a5362a13f840e84a2f67b9ba7141aae58cc4.tar.gz |
TOSA spec 0.20.0, initial public versionv0.20.0
Change-Id: I7c528ebf7e78759ada4bb951b2471c367d3f4525
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..6718528 --- /dev/null +++ b/Makefile @@ -0,0 +1,43 @@ +# +# This confidential and proprietary software may be used only as +# authorised by a licensing agreement from ARM Limited +# (C) COPYRIGHT 2020 ARM Limited +# ALL RIGHTS RESERVED +# The entire notice above must be reproduced on all authorised +# copies and copies may only be made to the extent permitted +# by a licensing agreement from ARM Limited. +# + +TOSAREVISION=0.20.0 +MKDIR=mkdir -p +ASCIIDOC=asciidoctor + +HTMLDIR=out/html +PDFDIR=out/pdf + +COMMON_ARGS= -a revnumber="$(TOSAREVISION)" + +SPECSRC := tosa_spec.adoc +SPECFILES = $(wildcard chapters/[A-Za-z]*.adoc) tosa.css + +.DELETE_ON_ERROR: + +.PHONY: all html pdf clean + +all: html pdf + +html: $(HTMLDIR)/tosa_spec.html + +pdf: $(PDFDIR)/tosa_spec.pdf + +clean: + $(RM) $(HTMLDIR)/tosa_spec.html + $(RM) $(PDFDIR)/tosa_spec.pdf + +$(HTMLDIR)/tosa_spec.html: $(SPECSRC) $(SPECFILES) + $(MKDIR) $(HTMLDIR) + $(ASCIIDOC) -b html5 -a stylesheet=tosa.css $(COMMON_ARGS) -o $@ $< + +$(PDFDIR)/tosa_spec.pdf: $(SPECSRC) $(SPECFILES) + $(MKDIR) $(PDFDIR) + $(ASCIIDOC) -r asciidoctor-pdf -b pdf $(COMMON_ARGS) -o $@ $(SPECSRC) |