aetherials/Makefile

28 lines
640 B
Makefile
Raw Normal View History

2023-10-23 21:49:44 +01:00
.PHONY : all
all: pdf epub
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 $<
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 $@
2023-10-23 21:49:44 +01:00
pdf : build/aetherials.pdf
2023-10-23 21:49:44 +01:00
epub : build/aetherials.epub
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/
2023-10-23 21:49:44 +01:00
clean :
@rm -rf *.aux *.dvi *.log *.out *.pdf *.bak ./build/ ./release/