diff options
author | Daniel Schadt <kingdread@gmx.de> | 2019-07-20 15:54:41 +0200 |
---|---|---|
committer | Daniel Schadt <kingdread@gmx.de> | 2019-07-20 15:54:41 +0200 |
commit | 5ad410dd55be4394e275f60fce44005eb7b8076a (patch) | |
tree | 282b43d40d0826dc8e1bb5ff98f04ea99ea0b25c /Makefile | |
parent | 74a005eea63cf5f5ca778c44002bde70a913d052 (diff) | |
parent | f62af149918575184987c2dfb41b1f07be6a06d9 (diff) | |
download | open-tt-guides-5ad410dd55be4394e275f60fce44005eb7b8076a.tar.gz open-tt-guides-5ad410dd55be4394e275f60fce44005eb7b8076a.tar.bz2 open-tt-guides-5ad410dd55be4394e275f60fce44005eb7b8076a.zip |
Merge branch 'commanding-guide'
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..77af9f8 --- /dev/null +++ b/Makefile @@ -0,0 +1,26 @@ +all: pdf html + + +pdf: + mkdir -p build + pdflatex -output-directory build $(NAME).tex + pdflatex -output-directory build $(NAME).tex + +minify: + ps2pdf -dPrinted=false build/$(NAME).pdf build/$(NAME).min.pdf + +html: + mkdir -p html + +ifeq ($(findstring htmlconf.cfg,$(wildcard *.cfg)),) + $(eval HTMLCONF=) +else + $(eval HTMLCONF=--config htmlconf) +endif + make4ht -d html $(HTMLCONF) $(NAME).tex + make4ht -d html $(HTMLCONF) $(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 |