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}

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