summaryrefslogtreecommitdiffstats
path: root/makefile
diff options
context:
space:
mode:
authorNao Pross <naopross@thearcway.org>2017-11-12 22:55:02 +0100
committerNao Pross <naopross@thearcway.org>2017-11-12 22:55:02 +0100
commit4820c131b7cea4941fd35e10ea3e828db4082047 (patch)
tree45f429db1d10b67b30acb7bf67c4b8d9ade7f770 /makefile
parentAdd notes (Chapter 1-3) (diff)
downloadLFC-4820c131b7cea4941fd35e10ea3e828db4082047.tar.gz
LFC-4820c131b7cea4941fd35e10ea3e828db4082047.zip
Add short bibliography
Diffstat (limited to 'makefile')
-rw-r--r--makefile12
1 files changed, 10 insertions, 2 deletions
diff --git a/makefile b/makefile
index 1d79099..0ff4241 100644
--- a/makefile
+++ b/makefile
@@ -4,7 +4,7 @@ DRAFT := lfc_draft.pdf
FINAL := lfc_final.pdf
# tex settings
-TEX := pdflatex \
+TEX := xelatex \
-interaction=nonstopmode \
-halt-on-error \
-output-directory=$(BUILD_DIR)
@@ -17,7 +17,7 @@ _FINAL := $(BUILD_DIR)/$(FINAL)
_FINAL_SRC := $(patsubst %.pdf,%.tex,$(FINAL))
# recipes
-.PHONY: build_dir
+.PHONY: build_dir count count_draft count_final
all: $(_DRAFT)
$(_DRAFT): $(_DRAFT_SRC) build_dir
@@ -26,5 +26,13 @@ $(_DRAFT): $(_DRAFT_SRC) build_dir
$(_FINAL): $(_FINAL_SRC) build_dir
$(TEX) $<
+count: count_draft count_final
+
+count_draft: $(_DRAFT_SRC)
+ texcount $<
+
+count_final: $(_FINAL_SRC)
+ texcount $<
+
build_dir:
mkdir -p $(BUILD_DIR)