Build README instructions.
This commit is contained in:
37
Makefile
37
Makefile
@@ -1,4 +1,37 @@
|
||||
out.pdf: blog-daniel.pdf techreview-daniel.pdf design-doc.pdf requirements.pdf intro.pdf
|
||||
archive.pdf: intro.pdf requirements.pdf design-doc.pdf \
|
||||
binary/techreview-ryan.pdf techreview-daniel.pdf binary/techreview-matt.pdf \
|
||||
binary/blog-ryan.pdf blog-daniel.pdf binary/blog-matt.pdf \
|
||||
readme.pdf
|
||||
pdfjam --no-tidy --outfile archive.pdf -- intro.pdf requirements.pdf design-doc.pdf \
|
||||
binary/techreview-ryan.pdf techreview-daniel.pdf binary/techreview-matt.pdf \
|
||||
binary/blog-ryan.pdf blog-daniel.pdf binary/blog-matt.pdf \
|
||||
readme.pdf
|
||||
|
||||
# Generate LaTeX files from READMEs
|
||||
readme-app.tex: external/app/README.md
|
||||
pandoc -f markdown-auto_identifiers -t latex --no-highlight -o readme-app.tex external/app/README.md
|
||||
|
||||
readme-cdl.tex: external/cdl/README.md
|
||||
pandoc -f markdown-auto_identifiers -t latex --no-highlight -o readme-cdl.tex external/cdl/README.md
|
||||
|
||||
readme-server.tex: external/server/README.md
|
||||
pandoc -f markdown-auto_identifiers -t latex --no-highlight -o readme-server.tex external/server/README.md
|
||||
|
||||
# Matt's READMEs don't use the convention for headers; we need to update them so that every
|
||||
# "section" is a subsection and so on. We also insert our own overarching section title.
|
||||
|
||||
readme-collar.tex: external/collar/README.md
|
||||
pandoc -f markdown-auto_identifiers -t latex --no-highlight -o readme-collar.tex external/collar/README.md
|
||||
sed -i -e 's/section/subsection/g' readme-collar.tex
|
||||
sed -i.old '1s;^;\\section{Collar Firmware};' readme-collar.tex
|
||||
|
||||
readme-gateway.tex: external/gateway/README.md
|
||||
pandoc -f markdown-auto_identifiers -t latex --no-highlight -o readme-gateway.tex external/gateway/README.md
|
||||
sed -i -e 's/section/subsection/g' readme-gateway.tex
|
||||
sed -i.old '1s;^;\\section{Gateway Software};' readme-gateway.tex
|
||||
|
||||
readme.pdf: readme-app.tex readme-server.tex readme-collar.tex readme-gateway.tex readme-cdl.tex readme.tex
|
||||
pdflatex readme.tex
|
||||
|
||||
intro.pdf: intro.tex
|
||||
pdflatex intro.tex
|
||||
@@ -19,6 +52,6 @@ requirements.pdf: external/requirements/requirements.latex
|
||||
cd external/requirements && pdflatex -output-directory=../.. requirements.latex && pdflatex -output-directory=../.. requirements.latex
|
||||
|
||||
clean:
|
||||
rm -rf *.pdf *.out *.aux *.log *.toc
|
||||
rm -rf *.pdf *.out *.aux *.log *.toc readme-*.tex
|
||||
|
||||
.PHONY: clean
|
||||
|
||||
Reference in New Issue
Block a user