57 lines
2.7 KiB
Makefile
57 lines
2.7 KiB
Makefile
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
|
|
# 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-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
|
|
|
|
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
|
|
|
|
blog-daniel.pdf: external/blog-daniel/blog.tex
|
|
cd external/blog-daniel && pdflatex -output-directory=../.. blog.tex && pdflatex -output-directory=../.. blog.tex
|
|
mv blog.pdf blog-daniel.pdf
|
|
|
|
techreview-daniel.pdf: external/techreview-daniel/techreview.latex
|
|
cd external/techreview-daniel && pdflatex -output-directory=../.. techreview.latex && pdflatex -output-directory=../.. techreview.latex
|
|
mv techreview.pdf techreview-daniel.pdf
|
|
|
|
design-doc.pdf: external/design/dd.tex
|
|
cd external/design && pdflatex -output-directory=../.. dd.tex && pdflatex -output-directory=../.. dd.tex
|
|
mv dd.pdf design-doc.pdf
|
|
|
|
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 readme-*.tex *.old
|
|
|
|
.PHONY: clean
|