2023-10-21 20:28:14 +01:00
|
|
|
# Author- and Meta-data
|
|
|
|
# THESE FIELDS MAY NOT CONTAIN ANY SEMICOLONS
|
2022-01-18 07:05:48 +00:00
|
|
|
|
2023-10-21 20:28:14 +01:00
|
|
|
.PHONY : all
|
|
|
|
all: pdf epub
|
2022-01-18 07:05:48 +00:00
|
|
|
|
2023-10-21 20:28:14 +01:00
|
|
|
build/%.pdf : src/%.tex
|
|
|
|
@echo "Building $@... $^"
|
|
|
|
@if [ ! -d "./build" ]; then mkdir ./build; fi
|
|
|
|
@pdflatex --output-dir ./build $<
|
|
|
|
@pdflatex --output-dir ./build $<
|
2022-01-18 07:05:48 +00:00
|
|
|
|
2023-10-21 20:28:14 +01:00
|
|
|
build/%.epub : src/%.tex
|
|
|
|
@echo "Building $@... $^"
|
|
|
|
@if [ ! -d "./build" ]; then mkdir ./build; fi
|
|
|
|
@pandoc -f latex $< -o $@
|
2022-01-18 07:05:48 +00:00
|
|
|
|
2023-10-21 20:28:14 +01:00
|
|
|
pdf : build/promise.pdf
|
2022-01-18 07:05:48 +00:00
|
|
|
|
2023-10-21 20:28:14 +01:00
|
|
|
epub : build/promise.epub
|
2022-01-18 07:05:48 +00:00
|
|
|
|
2023-10-21 20:28:14 +01:00
|
|
|
.PHONY : release
|
|
|
|
release : pdf epub
|
|
|
|
@echo "Building release.... $<"
|
|
|
|
@if [ ! -d "./release" ]; then mkdir ./release; fi
|
|
|
|
@cp ./build/*.pdf ./release/
|
|
|
|
@cp ./build/*.epub ./release/
|
2022-01-18 07:05:48 +00:00
|
|
|
|
2023-10-21 20:28:14 +01:00
|
|
|
clean :
|
|
|
|
@rm -rf *.aux *.dvi *.log *.out *.pdf *.bak ./build/ ./release/
|