From 7a5bf554b3c746c613ff49f7ecfa45f49d473806 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Sun, 12 Aug 2012 15:42:52 -0400 Subject: Handle CSS file in build system. --- diff --git a/Makefile b/Makefile index 5d102ae..f10f7df 100644 --- a/Makefile +++ b/Makefile @@ -13,11 +13,14 @@ $(FORMATS): $(BOOKS): @printf ' RENDER %s as %s\n' '$@' '$(FORMAT)' - @PERL5LIB=scripts scripts/markdownbook.pl $(FORMAT) 'policies/$@' + @PERL5LIB=scripts scripts/markdownbook.pl '$(FORMAT)' 'policies/$@' + @[ '$(FORMAT)' = 'html' ] && \ + ln -sf '../../include/main.css' 'policies/$@/main.css' || true clean: @for book in $(BOOKS); do \ printf ' CLEAN %s\n' "$${book}"; \ rm -f "policies/$${book}/"*.html; \ rm -f "policies/$${book}/"*.txt; \ + rm -f "policies/$${book}/"main.css; \ done -- cgit v0.9.1