aboutsummaryrefslogtreecommitdiff
path: root/spec/Makefile
diff options
context:
space:
mode:
authorJared Barocsi2022-03-01 16:28:33 -0800
committerGitHub2022-03-01 19:28:33 -0500
commitc56e341d25e35a5207c4eea12bac9bf0ddd8b652 (patch)
tree7af96942c4ae2641e5f08c8a26c9c9a8750c841e /spec/Makefile
parent475c165ccf8a52f79a94766450c23090f15d1393 (diff)
Convert firrtl specification to Markdown file (#2236)
- Convert FIRRTL spec to Markdown file. - Add PDF generation via pandoc. - Remove old LaTeX specification. Co-authored-by: Schuyler Eldridge <schuyler.eldridge@sifive.com> Signed-off-by: Schuyler Eldridge <schuyler.eldridge@sifive.com>
Diffstat (limited to 'spec/Makefile')
-rw-r--r--spec/Makefile9
1 files changed, 3 insertions, 6 deletions
diff --git a/spec/Makefile b/spec/Makefile
index 8ba97cf9..3c762cd1 100644
--- a/spec/Makefile
+++ b/spec/Makefile
@@ -1,13 +1,10 @@
-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
+spec.pdf: spec.md firrtl.xml spec-template.tex firrtl.xml ebnf.xml
+ pandoc $< --template spec-template.tex --syntax-definition firrtl.xml --syntax-definition ebnf.xml -r markdown+table_captions+inline_code_attributes+gfm_auto_identifiers --filter pandoc-crossref -o $@
clean:
- rm -f *.aux *.log *.out *.toc
+ rm -f *.aux *.log *.out *.toc *.pdf