| 1 |
SHELL=/bin/bash |
| 2 |
|
| 3 |
|
| 4 |
.NOTPARALLEL: |
| 5 |
|
| 6 |
prefix = /usr |
| 7 |
datadir = $(prefix)/share |
| 8 |
mandir = $(datadir)/man |
| 9 |
|
| 10 |
adoctargets = relax-and-recover-user-guide.adoc |
| 11 |
htmltargets = $(patsubst %.adoc, %.html, $(adoctargets)) |
| 12 |
|
| 13 |
asciidoc := $(shell if type -p asciidoctor >/dev/null; then echo asciidoctor; else echo asciidoc; fi) -a webfonts! |
| 14 |
|
| 15 |
all: docs |
| 16 |
|
| 17 |
dist: docs |
| 18 |
|
| 19 |
docs: $(htmltargets) |
| 20 |
|
| 21 |
clean: |
| 22 |
rm -f *.html *.svg *.xml |
| 23 |
|
| 24 |
%.html: %.adoc |
| 25 |
$(asciidoc) -a footer-style=none $< |