aboutsummaryrefslogtreecommitdiff
path: root/spec/Makefile
diff options
context:
space:
mode:
authorBen Marshall2018-09-27 19:40:16 +0100
committerJack Koenig2018-09-27 11:40:16 -0700
commit29e5c0881291b2ab225eb1617592213de611a4a5 (patch)
treebb0e117fd961f2cccf7bf50c86566183e161604a /spec/Makefile
parent953deb5d6f3a7a039d767b7e57a161960b17534a (diff)
Number all code examples & add specification build to Makefile (#894)
* Merge makefile changes from dev/specification-fixes - New top level makefile target: `specification` - Builds the specification document. * Number all code examples. This is more a change of convenience than anything. Referring to syntax examples is much easier when they are numbered! This commit is in the context of freechipsproject/firrtl#890 - Updating examples and syntax specification is made easier if they are numbered. - Change `verbatim` environments to `lstlisting` - Add very basic keyword highlighting. - Rebuild specification PDF. On branch dev/number-code-examples Changes to be committed: modified: spec/spec.pdf modified: spec/spec.tex
Diffstat (limited to 'spec/Makefile')
-rw-r--r--spec/Makefile13
1 files changed, 13 insertions, 0 deletions
diff --git a/spec/Makefile b/spec/Makefile
new file mode 100644
index 00000000..8ba97cf9
--- /dev/null
+++ b/spec/Makefile
@@ -0,0 +1,13 @@
+
+SRC = spec.tex
+SPEC = spec.pdf
+
+all: $(SPEC)
+
+$(SPEC) : $(SRC)
+ pdflatex -output-format=pdf spec.tex
+ pdflatex -output-format=pdf spec.tex
+ pdflatex -output-format=pdf spec.tex
+
+clean:
+ rm -f *.aux *.log *.out *.toc