diff options
Diffstat (limited to 'Makefile')
-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}"; \ |