summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
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