Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
27 lines (17 sloc) 546 Bytes
TARGETS=build/license.md build/license.docx build/license.pdf build/license.html build/license.odt
all: $(TARGETS)
build/%.md: %.md | build
cat $< | fgrep -v "<!--" | sed '/^\s*$$/d' | awk 'ORS="\n\n"' | fmt --width 60 --uniform-spacing | perl -pe 'chomp if eof' > $@
build/%.docx: %.md | build
pandoc --output $@ $<
build/%.odt: %.md | build
pandoc --output $@ $<
build/%.html: %.md | build
pandoc --to html5 --output $@ $<
build/%.pdf: %.md | build
pandoc --output $@ $<
build:
mkdir build
.PHONY: clean
clean:
rm --force build
You can’t perform that action at this time.