update template
This commit is contained in:
34
makefile
34
makefile
@@ -4,13 +4,13 @@ all: all_booklets all_docduments
|
||||
all_docduments: prepare pdf/assambly_report.pdf pdf/c_report.pdf
|
||||
all_booklets: prepare pdf/assambly_report.booklet.pdf pdf/c_report.booklet.pdf
|
||||
prepare:
|
||||
mkdir -p latex pdf
|
||||
mkdir -p pdf
|
||||
|
||||
clean:
|
||||
rm -r build latex
|
||||
rm -r build
|
||||
|
||||
clean_all:
|
||||
rm -r build latex pdf
|
||||
rm -r build pdf
|
||||
|
||||
install_arch:
|
||||
mkdir -p build/install
|
||||
@@ -58,27 +58,13 @@ install_ubuntu:
|
||||
chmod 0775 /usr/share/fonts/roboto
|
||||
chmod 0664 /usr/share/fonts/roboto/*
|
||||
|
||||
# =======================================
|
||||
# === latex generation ==================
|
||||
# =======================================
|
||||
|
||||
latex/assambly_report.latex: converters/mdToLatex.sh converters/template.latex report-1/*.md
|
||||
mkdir -p build/assambly_report
|
||||
bash converters/mdToLatex.sh report-1/assambly_report.md latex/assambly_report.latex
|
||||
|
||||
latex/c_report.latex: converters/mdToLatex.sh converters/template.latex report-2/*.md
|
||||
mkdir -p build/c_report
|
||||
bash converters/mdToLatex.sh report-2/c_report.md latex/c_report.latex
|
||||
|
||||
# =======================================
|
||||
# === pdf generation ====================
|
||||
# =======================================
|
||||
|
||||
pdf/assambly_report.pdf: latex/assambly_report.latex
|
||||
cd build/assambly_report && xelatex ../../latex/assambly_report.latex
|
||||
cd build/assambly_report && xelatex ../../latex/assambly_report.latex
|
||||
cd build/assambly_report && xelatex ../../latex/assambly_report.latex
|
||||
mv build/assambly_report/assambly_report.pdf pdf/assambly_report.pdf
|
||||
pdf/assambly_report.pdf: converters/* report-1/*.md
|
||||
mkdir -p build/assambly_report
|
||||
bash converters/mdToLatex.sh report-1/assambly_report.md
|
||||
|
||||
pdf/assambly_report.booklet.pdf: converters/bookletify.latex pdf/assambly_report.pdf
|
||||
mkdir -p build/assambly_report.booklet
|
||||
@@ -86,11 +72,9 @@ pdf/assambly_report.booklet.pdf: converters/bookletify.latex pdf/assambly_report
|
||||
pdflatex -interaction=nonstopmode -output-directory="build/assambly_report.booklet" "build/assambly_report.booklet/bookletify.latex"
|
||||
mv build/assambly_report.booklet/bookletify.pdf pdf/assambly_report.booklet.pdf
|
||||
|
||||
pdf/c_report.pdf: latex/c_report.latex
|
||||
cd build/c_report && xelatex ../../latex/c_report.latex
|
||||
cd build/c_report && xelatex ../../latex/c_report.latex
|
||||
cd build/c_report && xelatex ../../latex/c_report.latex
|
||||
mv build/c_report/c_report.pdf pdf/c_report.pdf
|
||||
pdf/c_report.pdf: converters/* report-2/*.md
|
||||
mkdir -p build/c_report
|
||||
bash converters/mdToLatex.sh report-2/c_report.md
|
||||
|
||||
pdf/c_report.booklet.pdf: converters/bookletify.latex pdf/c_report.pdf
|
||||
mkdir -p build/c_report.booklet
|
||||
|
||||
Reference in New Issue
Block a user