├── Makefile ├── README.md ├── bg.jpg └── title.txt /Makefile: -------------------------------------------------------------------------------- 1 | MAKRDOWN_FILES += README.md 2 | COVER_IMAGE = bg.jpg 3 | PANDOC = pandoc 4 | PANDOC_OPT += -s --toc-depth=4 --toc 5 | PANDOC_OPT += --epub-cover-image=$(COVER_IMAGE) title.txt $(MAKRDOWN_FILES) 6 | NAME = Kyle_Kingsbury_Clojure_From_The_Ground_Up 7 | 8 | all: $(NAME).epub $(NAME).html 9 | 10 | $(NAME).epub: $(MAKRDOWN_FILES) title.txt 11 | $(PANDOC) $(PANDOC_OPT) -o $(NAME).epub 12 | 13 | $(NAME).html: $(MAKRDOWN_FILES) 14 | $(PANDOC) $(PANDOC_OPT) -o $(NAME).html 15 | 16 | release: $(NAME).epub $(NAME).html 17 | zip $(NAME).zip $(NAME).epub $(NAME).html 18 | 19 | clean: 20 | rm -f $(NAME).html $(NAME).epub $(NAME).zip 21 | 22 | .PHONY: clean 23 | -------------------------------------------------------------------------------- /bg.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ligurio/clojure-from-the-ground-up/de9e0a810c585c0542db3d65663bd150806a3ef2/bg.jpg -------------------------------------------------------------------------------- /title.txt: -------------------------------------------------------------------------------- 1 | --- 2 | title: Clojure From The Ground Up 3 | author: Kyle Kingsbury 4 | language: en-EN 5 | ... 6 | --------------------------------------------------------------------------------