# Makefile for generatin HTML and PDF from AsciiDoctor (*.adoc). SRC = $(wildcard *.adoc) PDF = $(SRC:.adoc=.pdf) HTML = $(SRC:.adoc=.html) # Default target 'html' builds HTML from *.adoc files. html: $(HTML) # The 'full' builds PDF and HTML from *.adoc files. all: $(PDF) $(HTML) # General Rule for converting AsciiDoc files to HTML. %.html: %.adoc rm -f $@ asciidoctor $^ # General Rule for converting AsciiDoc files to PDF. %.pdf: %.adoc rm -f $@ asciidoctor-pdf -a pdf-themesdir=themes -a pdf-theme=basic $^ .PHONY: clean rec clean: rm -f $(PDF) $(HTML) rec: p4 rec