35 lines
814 B
Makefile
35 lines
814 B
Makefile
|
|
||
|
SHELL := zsh
|
||
|
PATH := /usr/local/texlive/2015basic/bin/x86_64-darwin:$(PATH)
|
||
|
|
||
|
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)
|