Makefile #2

  • //
  • dsi/
  • dev/
  • doc/
  • Makefile
  • View
  • Commits
  • Open Download .zip Download (555 B)
# Makefile for SDP docs from AsciiDoctor format to HTML and PDF

SRC = $(wildcard *.adoc)

PDF = $(SRC:.adoc=.pdf)

HTML = $(SRC:.adoc=.html)

# Default target 'default' builds HTML from *.adoc files.
default: $(HTML)

# Target 'all' builds PDF and HTML from *.adoc files.
all:	$(PDF) $(HTML)

# General Rule for converting AsciiDoc files to HTML.
%.html: %.adoc
	asciidoctor $^

# General Rule for converting AsciiDoc files to PDF.
%.pdf: %.adoc
	asciidoctor-pdf -a pdf-themesdir=themes -a pdf-theme=basic $^

.PHONY: clean

clean:
	rm -f $(PDF) $(HTML)
# Change User Description Committed
#2 28091 C. Thomas Tyler Minor doc correction.

Regenerated HTML.

Removed generated PDF.

Changed Makefile to build only HTML by default, with PDF-building
remaining in place but dormant.
#1 27130 C. Thomas Tyler Added AsciiDoc.