aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorDaniel Schadt <kingdread@gmx.de>2019-07-19 13:50:32 +0200
committerDaniel Schadt <kingdread@gmx.de>2019-07-19 13:50:32 +0200
commitf08678a869bf6161cc8ac00dd6cf1232e5bf74ab (patch)
tree2b92d10f71b643786204218c7a9b380dd93e47d9 /Makefile
parent782f70c1adb8b2a83214fbc973c2f889b2587860 (diff)
downloadopen-tt-guides-f08678a869bf6161cc8ac00dd6cf1232e5bf74ab.tar.gz
open-tt-guides-f08678a869bf6161cc8ac00dd6cf1232e5bf74ab.tar.bz2
open-tt-guides-f08678a869bf6161cc8ac00dd6cf1232e5bf74ab.zip
[commanding] add Organization section
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 9 insertions, 2 deletions
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