18 lines
868 B
Makefile
18 lines
868 B
Makefile
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
|
|
|
|
clean:
|
|
- rm -rf build
|