From: Gunnar Wolf Date: Mon, 31 Jul 2017 18:48:30 +0000 (-0500) Subject: Add Makefile targets for all, clean X-Git-Tag: es-printed~748^2 X-Git-Url: https://pere.pagekite.me/gitweb/text-madewithcc.git/commitdiff_plain/a4c073627da431bbbc06d4f6b876a8efc004d7d9?hp=-c Add Makefile targets for all, clean --- a4c073627da431bbbc06d4f6b876a8efc004d7d9 diff --git a/Makefile b/Makefile index 293596a..34418ba 100644 --- a/Makefile +++ b/Makefile @@ -9,6 +9,16 @@ VERSION=20170609-2 PANDOCOPTS = --top-level-division=part -t docbook -f markdown+inline_notes PANDOCOPTS = -t docbook -f markdown+inline_notes +LANGS = es nl nb + +all: pdf + +clean: + rm -f $(SOURCE).pdf $(SOURCE).xml $(SOURCE).md + for LANG in $(LANGS); do \ + rm -f $(SOURCE).$$LANG.pdf $(SOURCE).$$LANG.xml $(SOURCE).$$LANG.md ;\ + done + $(SOURCE).md: $(SOURCE).odt fixup.rb TEMP=`tempfile -p mwcc` && \ pandoc -f odt $(SOURCE).odt -t markdown > $$TEMP && \