aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorDaniel Schadt <kingdread@gmx.de>2019-07-15 15:26:10 +0200
committerDaniel Schadt <kingdread@gmx.de>2019-07-15 15:26:10 +0200
commitc61a1d1756e84066908af422288ae3772e14c0b6 (patch)
tree9993471fe2ec36bb89201680ef0b7881406c1c7b /Makefile
parentc9d759ba849f1160542957082b3a87d9a8927e2d (diff)
downloadopen-tt-guides-c61a1d1756e84066908af422288ae3772e14c0b6.tar.gz
open-tt-guides-c61a1d1756e84066908af422288ae3772e14c0b6.tar.bz2
open-tt-guides-c61a1d1756e84066908af422288ae3772e14c0b6.zip
split off common elements
this makes it easier to add new guides in the same style without needing to repeat the whole preamble.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile16
1 files changed, 16 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..ff1e6d3
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,16 @@
+all: pdf html
+
+pdf:
+ mkdir -p build
+ pdflatex -output-directory build $(NAME).tex
+ pdflatex -output-directory build $(NAME).tex
+
+html:
+ mkdir -p html
+ make4ht -d html $(NAME).tex
+ make4ht -d html $(NAME).tex
+ cat ../custom.css >> html/$(NAME).css
+ rm $(NAME).4ct $(NAME).4tc $(NAME).aux $(NAME).dvi $(NAME).idv $(NAME).lg $(NAME).log $(NAME).tmp $(NAME).xref $(NAME).css $(NAME).html
+
+
+.PHONY: all pdf html