2023-10-23 21:49:44 +01:00
|
|
|
.PHONY : all
|
|
|
|
all: pdf epub
|
2022-09-15 00:09:43 +01:00
|
|
|
|
2023-10-23 21:49:44 +01:00
|
|
|
build/%.pdf : src/%.tex
|
|
|
|
@echo "Building $@... $^"
|
|
|
|
@if [ ! -d "./build" ]; then mkdir ./build; fi
|
|
|
|
@pdflatex --output-dir ./build $<
|
|
|
|
@pdflatex --output-dir ./build $<
|
2022-09-15 00:09:43 +01:00
|
|
|
|
2023-10-23 21:49:44 +01:00
|
|
|
build/%.epub : src/%.tex
|
|
|
|
@echo "Building $@... $^"
|
|
|
|
@if [ ! -d "./build" ]; then mkdir ./build; fi
|
|
|
|
@pandoc -f latex $< -o $@
|
2022-09-15 00:09:43 +01:00
|
|
|
|
2023-10-23 21:49:44 +01:00
|
|
|
pdf : build/aetherials.pdf
|
2022-09-15 00:09:43 +01:00
|
|
|
|
2023-10-23 21:49:44 +01:00
|
|
|
epub : build/aetherials.epub
|
2022-09-15 00:09:43 +01:00
|
|
|
|
2023-10-23 21:49:44 +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-09-15 00:09:43 +01:00
|
|
|
|
2023-10-23 21:49:44 +01:00
|
|
|
clean :
|
|
|
|
@rm -rf *.aux *.dvi *.log *.out *.pdf *.bak ./build/ ./release/
|