From e841c06b0f861e0e75772121cbdef2f7de29fd6f Mon Sep 17 00:00:00 2001 From: Daniel Bosk Date: Thu, 18 Apr 2019 13:56:41 +0200 Subject: [PATCH] WIP on merging all HTML into one index --- modules/Makefile | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/modules/Makefile b/modules/Makefile index ac4f194..6874a83 100644 --- a/modules/Makefile +++ b/modules/Makefile @@ -19,9 +19,12 @@ PUB_USER?= PUB_GROUP?= svn -index.md: $(foreach f,${SUBDIR},$f/$f.md) - ${RM} $@ - for f in $^; do ${CAT} $$f >> $@; echo >> $@; done +index.html: $(foreach f,${SUBDIR},$f/$f.html) bibliography.bib + pandoc -s --bibliography=bibliography.bib -o $@ $(filter %.html,$^) + +bibliography.bib: bibliography.bib($(foreach f,${SUBDIR},$f/$f.bib)) + +(%.bib): %.bib $(addsuffix /%,${SUBDIR}): ${MAKE} -C $(dir $@) $(notdir $@) @@ -29,7 +32,8 @@ $(addsuffix /%,${SUBDIR}): .PHONY: clean clean: - ${RM} index.md index.html + ${RM} index.html + ${RM} bibliography.bib $(foreach d,${SUBDIR},${MAKE} -C $d clean;) .PHONY: distclean