summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2012-08-13 19:01:51 (EDT)
committer P. J. McDermott <pjm@nac.net>2012-08-13 19:01:51 (EDT)
commite3340da06416b027110ca509e6507add5291e5b4 (patch)
tree6c86fe42efea3113cdcd584a6dca118697ab71de /Makefile
parent21dde1b5d765449dc1dac43603706d320782659f (diff)
Add spf-2.0 book and missing book targets.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 0eae244..01c99b6 100644
--- a/Makefile
+++ b/Makefile
@@ -27,7 +27,7 @@ SRCS = specs/source-package-format-1.0.txt \
specs/source-package-format-2.0.txt
OBJS = $(SRCS:.txt=.html)
-BOOKS =
+BOOKS = spf-2.0
FORMATS = html txt
# Default format in case a book target is called without FORMAT=*
@@ -45,6 +45,13 @@ $(OBJS):
@markdown $*.txt >> $@
@cat include/footer.html >> $@
+$(BOOKS):
+ @printf ' RENDER %s as %s\n' '$@' '$(FORMAT)'
+ @PERL5LIB=markdownbook/lib markdownbook/bin/markdownbook.pl \
+ '$(FORMAT)' 'specs/$@'
+ @[ '$(FORMAT)' = 'html' ] && \
+ ln -sf '../../include/main.css' 'specs/$@/main.css' || true
+
clean:
@for obj in $(OBJS); do \
printf ' CLEAN %s\n' "$${obj}"; \