diff options
author | P. 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) |
commit | e3340da06416b027110ca509e6507add5291e5b4 (patch) | |
tree | 6c86fe42efea3113cdcd584a6dca118697ab71de | |
parent | 21dde1b5d765449dc1dac43603706d320782659f (diff) |
Add spf-2.0 book and missing book targets.
-rw-r--r-- | Makefile | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -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}"; \ |