Update to use new Makefile approach

This commit is contained in:
William Moore 2024-03-10 16:22:42 -05:00
parent c3858d6794
commit 07ffe7d583
10 changed files with 21 additions and 11 deletions

View File

@ -1,9 +1,17 @@
BUILDDIR=./build
SRCDIR=./src
include Targets
all: $(TARGETS)
$(TARGETS):
- mkdir -p build/$@
- mkdir -p build/www/$@
- cp src/$@/*.jpg build/$@/
- cp src/$@/*.png build/$@/
- test -f ./src/$@/$@.md && pandoc -s ./src/$@/$@.tex -o ./build/$@.md --standalone --mathjax && cat ./build/$@.md | sed -e 's/\(::: center\)//g' | sed -e 's/::://g' > ./build/$@.md.tmp && mv ./build/$@.md.tmp ./build/$@.md
- test -f ./src/$@/$@.html && pandoc -s ./src/$@/$@.tex -o ./build/$@.html --standalone
- test -f ./src/$@/$@.cfg && test -f ./src/$@/$@.tex && tex4ebook -c ./src/$@/$@.cfg -d build/ ./src/$@/$@.tex && rm -rf $@-epub && rm $@*.*
- test -f ./src/$@/$@.adobe && test -f ./src/$@/$@.tex && latex --output-format=pdf --output-directory=build/ --directory=build/ ./src/$@/$@.tex && latex --output-format=pdf --output-directory=build/ --directory=build/ ./src/$@/$@.tex
all:
- mkdir build
latex --output-format=pdf --output-directory=$(BUILDDIR) $(SRCDIR)/culinaria.tex
latex --output-format=pdf --output-directory=$(BUILDDIR) $(SRCDIR)/culinaria.tex
clean:
- rm -rf $(BUILDDIR)
- rm -rf build

1
Targets Normal file
View File

@ -0,0 +1 @@
TARGETS=culinaria

View File

View File

View File

@ -1,9 +1,10 @@
% This work is licensed under the Creative Commons BY-NC-SA 4.0 License. To view a copy of the license, visit https://rezrov.xyz/caranmegil/culinaria/src/branch/main/LICENSE.
\documentclass[titlepage]{article}
\usepackage[a4paper]{geometry}
\usepackage{graphicx}
\usepackage[dvipsnames]{xcolor}
\graphicspath{ {./src/images/} }
\graphicspath{ {./src/culinaria/images/} }
\title{The "William Moore" Culinaria}
@ -192,7 +193,7 @@ To prepare, combine all ingredients but the dried and ground chillies. Refrigera
\section*{My Internet Friends}
\addcontentsline{toc}{section}{My Internet Friends}
\textit{These recipes were contributed by several people I know from the Internet games, social media, etc. I've tried to keep the names of the people either by their real names or handles.}
\newpage
\newpage
\subsection*{Ikes' "Internet Famous" Chicken Fajitas}
\addcontentsline{toc}{subsection}{Ikes' "Internet Famous" Chicken Fajitas}
\textbf{by Ikes}
@ -241,7 +242,7 @@ To prepare, combine all ingredients but the dried and ground chillies. Refrigera
In a small bowl, whisk together: coriander, cumin, turmeric, crushed fennel seeds, cinnamon, pepper, mustard, cloves. Heat oil in a skillet over medium-high heat. Add onion and saute until golden brown (about 4-6 minutes). Add garlic, blend, and saute for another 30 seconds. Add in whisked spice blend and saute for 30 seconds more. Pour in chicken broth and tomatoes and bring to a boil. Reduce heat once boiling and simmer for 5 minutes. Pour the mixture in a blender and puree. Pour mixture back into a skillet. Add salt and cayenne pepper. Add the cubed chicken. Simmer and cover the skillet with a lid until chicken is cooked thoroughly with occasional stirring (about 8-12 minutes). Mix cornstarch and water and add to the skillet. Once chicken is fully cooked, add the cream and cilantro.
\subsubsection*{William's Notes}
You can certainly replace the whipping cream with say 16 oz of unsweetened coconut milk.
\newpage
\newpage
\subsection*{Jonn's Mushroom Soup}
\addcontentsline{toc}{subsection}{Jonn's Mushroom Soup}
\textbf{by Jonn}
@ -291,4 +292,4 @@ To prepare, combine all ingredients but the dried and ground chillies. Refrigera
\vspace*{\fill}
\noindent\fbox{\makebox[\textwidth]{\includegraphics[width=\textwidth]{back}}}
\vspace*{\fill}
\end{document}
\end{document}

View File

Before

Width:  |  Height:  |  Size: 384 KiB

After

Width:  |  Height:  |  Size: 384 KiB

View File

Before

Width:  |  Height:  |  Size: 410 KiB

After

Width:  |  Height:  |  Size: 410 KiB

View File

Before

Width:  |  Height:  |  Size: 388 KiB

After

Width:  |  Height:  |  Size: 388 KiB

View File

Before

Width:  |  Height:  |  Size: 418 KiB

After

Width:  |  Height:  |  Size: 418 KiB

View File

Before

Width:  |  Height:  |  Size: 336 KiB

After

Width:  |  Height:  |  Size: 336 KiB