summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2012-08-12 15:42:52 (EDT)
committer P. J. McDermott <pjm@nac.net>2012-08-12 15:42:52 (EDT)
commit7a5bf554b3c746c613ff49f7ecfa45f49d473806 (patch)
treea07295634a54cc68b1308e269b6229fc32a8a277 /Makefile
parentf98303632bc9dac488096dea603fedb7f49f13c8 (diff)
Handle CSS file in build system.
Diffstat (limited to 'Makefile')
-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