diff options
Diffstat (limited to 'makefile')
-rw-r--r-- | makefile | 12 |
1 files changed, 10 insertions, 2 deletions
@@ -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) |