txt report

This commit is contained in:
gauthiier
2017-01-20 09:09:32 +01:00
parent fe56bc0e8e
commit 2bdc741e65
6 changed files with 26 additions and 13 deletions
+11 -5
View File
@@ -3,19 +3,25 @@
ARCHIVE := arch/nettime-l_2016-12-31.json.gz
CMDSCRIPT := command-script.json
all: init index.html clean-stage
all: init index.html txt.txt clean-stage
init:
@command -v pandoc > /dev/null 2>&1 || (echo 'pandoc not found... please visit -- http://johnmacfarlane.net/pandoc/installing.html' && exit 1)
%.stage.md: index.md
python ../report.py -i $(CMDSCRIPT) -o index.stage.md -t index.md -a $(ARCHIVE)
%.md.stage: index.md
python ../report.py -i $(CMDSCRIPT) -o $@ -t $< -a $(ARCHIVE)
%.html: %.stage.md
%.html: %.md.stage
pandoc -s --template style/template.html5 -c style/style.css -o $@ $<
%.txt.stage: txt.d
python ../report.py -i $(CMDSCRIPT) -o $@ -t $< -a $(ARCHIVE)
%.txt: %.txt.stage
fold -sw 80 $< > $@
clean-stage:
rm -rf *.stage.md
rm -rf *.stage
clean:
rm -rf *.hml *.txt