From e3340da06416b027110ca509e6507add5291e5b4 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Mon, 13 Aug 2012 19:01:51 -0400 Subject: Add spf-2.0 book and missing book targets. --- 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}"; \ -- cgit v0.9.1