Makefile #1

  • //
  • guest/
  • tom_tyler/
  • docs/
  • Makefile
  • View
  • Commits
  • Open Download .zip Download (586 B)
# 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
# Change User Description Committed
#1 33194 C. Thomas Tyler Added initial doc.