Last active
January 30, 2017 07:43
-
-
Save ekroon/a6c9032c271633821a533c0d9b03f34d to your computer and use it in GitHub Desktop.
adoc to docx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ADOC_FILES=$(wildcard *.adoc) | |
DOCX_FILES=$(addprefix target/,$(ADOC_FILES:.adoc=.docx)) | |
all: $(DOCX_FILES) | |
target/%.docx: %.adoc target | |
asciidoctor -b docbook --out-file - $< | pandoc -f docbook -o $@ | |
target: | |
mkdir -p target | |
clean: | |
rm -rf target/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment