veil-saga/Makefile

16 lines
335 B
Makefile
Raw Permalink Normal View History

2018-11-22 22:18:02 -05:00
sp :=
sp += # add space
chapter-sort = $(shell echo -e $(subst $(sp),'\n',$2) | sort $1 -)
2018-10-27 17:07:36 -04:00
2018-11-03 17:31:44 -04:00
books : Book1.pdf Book1.epub
2018-10-27 17:07:36 -04:00
Book1.pdf : $(call chapter-sort,-n,$(wildcard Book-1/*.md))
pandoc $^ -o $@
2018-11-03 17:31:44 -04:00
Book1.epub : $(call chapter-sort,-n,$(wildcard Book-1/*.md))
pandoc $^ -o $@
2018-10-27 17:07:36 -04:00
clean:
2019-02-28 21:43:23 -05:00
rm -rf Book1.pdf Book1.epub
2018-10-27 17:07:36 -04:00
.PHONY: books clean