update readme and tidy makefile

This commit is contained in:
Ben Harris 2019-09-23 19:28:54 -04:00
parent e1513c9dc3
commit 3f812e8e94
3 changed files with 26 additions and 14 deletions

View File

@ -1,14 +1,16 @@
ISSUES != find issues -type d DEST_DIR ?= dist
DEST_PDF_FILES := $(ISSUES:issues/%=dist/issue-%.pdf) ISSUES != find . -path "./issues/*" -type d
DEST_HTML_FILES := $(ISSUES:issues/%=dist/issue-%.html) DEST_PDF_FILES := $(ISSUES:./issues/%=$(DEST_DIR)/issue-%.pdf)
DEST_EPUB_FILES := $(ISSUES:issues/%=dist/issue-%.epub) DEST_HTML_FILES := $(ISSUES:./issues/%=$(DEST_DIR)/issue-%.html)
DEST_EPUB_FILES := $(ISSUES:./issues/%=$(DEST_DIR)/issue-%.epub)
PANDOC != command -v pandoc 2> /dev/null PANDOC != command -v pandoc 2> /dev/null
all: $(DEST_PDF_FILES) $(DEST_HTML_FILES) $(DEST_EPUB_FILES) all: $(DEST_PDF_FILES) $(DEST_HTML_FILES) $(DEST_EPUB_FILES)
dist/issue-%.pdf: issues/% $(DEST_DIR)/issue-%.pdf: issues/%
$(PANDOC) \ @echo "building $@"
@$(PANDOC) \
--file-scope \ --file-scope \
--from markdown \ --from markdown \
--to latex \ --to latex \
@ -19,8 +21,9 @@ dist/issue-%.pdf: issues/%
--output $@ \ --output $@ \
$</*.md $</*.md
dist/issue-%.html: issues/% $(DEST_DIR)/issue-%.html: issues/%
$(PANDOC) \ @echo "building $@"
@$(PANDOC) \
--file-scope \ --file-scope \
--from markdown \ --from markdown \
--to html \ --to html \
@ -35,8 +38,9 @@ dist/issue-%.html: issues/%
--output $@ \ --output $@ \
$</*.md $</*.md
dist/issue-%.epub: issues/% $(DEST_DIR)/issue-%.epub: issues/%
$(PANDOC) \ @echo "building $@"
@$(PANDOC) \
--file-scope \ --file-scope \
--from markdown \ --from markdown \
--to epub \ --to epub \
@ -48,7 +52,8 @@ dist/issue-%.epub: issues/%
$</*.md $</*.md
clean: clean:
@rm dist/*.html dist/*.pdf dist/*.epub @echo "removing build artifacts"
@rm $(DEST_PDF_FILES) $(DEST_HTML_FILES) $(DEST_EPUB_FILES)
.PHONY: clean .PHONY: clean

View File

@ -1,6 +1,14 @@
# zine # zine
this is where the tildeverse zine will live this is where the tildeverse zine lives
PRs welcome build deps:
- pandoc
- xelatex (packaged in debian as texlive-xetex)
to build all issues, run `make`
feel free to come chat in [\#zine](https://web.tilde.chat/?join=zine)
and send your submissions via PR or mail a patch to
[ben](mailto:ben@tilde.team).

View File

@ -1 +0,0 @@
title: tildeverse zine issue 1