DOCS=$(wildcard *.adoc) HTML=$(DOCS:%.adoc=%.html) all: $(HTML) %.html: %.adoc asciidoctor -v -a stylesheet=asciidoctor.css -a stylesdir=../../css $< # Remove output directories .PHONY: clean clean: rm -rf $(HTML)