2024-03-10 21:22:42 +00:00
|
|
|
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
|
2023-01-13 11:41:26 +00:00
|
|
|
|
|
|
|
clean:
|
2024-03-10 21:22:42 +00:00
|
|
|
- rm -rf build
|