Skip to content

Instantly share code, notes, and snippets.

@ekroon
Last active January 30, 2017 07:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ekroon/a6c9032c271633821a533c0d9b03f34d to your computer and use it in GitHub Desktop.
Save ekroon/a6c9032c271633821a533c0d9b03f34d to your computer and use it in GitHub Desktop.
adoc to docx
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