From c61a1d1756e84066908af422288ae3772e14c0b6 Mon Sep 17 00:00:00 2001 From: Daniel Schadt Date: Mon, 15 Jul 2019 15:26:10 +0200 Subject: split off common elements this makes it easier to add new guides in the same style without needing to repeat the whole preamble. --- Makefile | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 Makefile (limited to 'Makefile') 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 -- cgit v1.2.3 From f08678a869bf6161cc8ac00dd6cf1232e5bf74ab Mon Sep 17 00:00:00 2001 From: Daniel Schadt Date: Fri, 19 Jul 2019 13:50:32 +0200 Subject: [commanding] add Organization section --- Makefile | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index ff1e6d3..9ab0169 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,6 @@ all: pdf html + pdf: mkdir -p build pdflatex -output-directory build $(NAME).tex @@ -7,8 +8,14 @@ pdf: html: mkdir -p html - make4ht -d html $(NAME).tex - make4ht -d html $(NAME).tex + +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 -- cgit v1.2.3 From f62af149918575184987c2dfb41b1f07be6a06d9 Mon Sep 17 00:00:00 2001 From: Daniel Schadt Date: Sat, 20 Jul 2019 15:53:03 +0200 Subject: generate minified PDFs --- Makefile | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 9ab0169..77af9f8 100644 --- a/Makefile +++ b/Makefile @@ -6,6 +6,9 @@ pdf: 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 -- cgit v1.2.3