blob: 2b929a4f27d52f92bd590f407749c163d9254718 [file] [log] [blame]
#
# design documentation build rules
#
TARGET=xfs_performance_tuning
DOCFILES=$(wildcard *.asciidoc) \
docinfo.xml
HTML_TARGET=$(addsuffix .html, $(TARGET))
PDF_TARGET=$(addsuffix .pdf, $(TARGET))
EPUB_TARGET=$(addsuffix .epub, $(TARGET))
default: html pdf epub
%.html: %.asciidoc
@echo "[html] $*"
$(Q)a2x -f xhtml -d book $<
%.pdf: %.asciidoc
@echo "[pdf] $*"
$(Q)a2x -f pdf -d book $<
%.epub: %.asciidoc
@echo "[epub] $*"
$(Q)a2x -f epub -d book $<
html: $(HTML_TARGET)
pdf: $(PDF_TARGET)
epub: $(EPUB_TARGET)
# manually construct build dependencies for target builds so that modification
# of individual files will trigger a rebuild of the document correctly.
$(PDF_TARGET): $(DOCFILES)
$(HTML_TARGET): $(DOCFILES)
$(EPUB_TARGET): $(DOCFILES)
clean:
$(Q)rm -f *.html *.pdf *.css *.epub