sistemi-formali/makefile
2016-03-19 16:34:13 +01:00

35 lines
751 B
Makefile

SHELL := zsh
title = 'sistemi-formali'
md = $(1).md
map = $(foreach a,$(2),$(call $(1),$(a)))
pdf = @pandoc \
$(call map, md, $(1)) \
--standalone \
--smart \
--number-sections \
-H options/tex \
--data-dir=options \
--template=cover.tex \
--latex-engine=xelatex \
-o $(title).pdf ;
html = @pandoc \
$(call map, md, $(1)) \
--standalone \
--smart \
--number-sections \
--number-offset=1 \
-t html5 \
-H options/html \
--mathjax="" \
-c options/style.css \
-o index.html ;
main:
$(call pdf, godel lambda-calcolo metateatro)
$(call html, godel lambda-calcolo metateatro)