summaryrefslogtreecommitdiffstats
path: root/makefile
diff options
context:
space:
mode:
Diffstat (limited to '')
-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)