diff options
Diffstat (limited to 'makefile')
-rw-r--r-- | makefile | 28 |
1 files changed, 9 insertions, 19 deletions
@@ -1,7 +1,6 @@ # file settings BUILD_DIR := build -DRAFT := lfc_draft.pdf -FINAL := lfc_final.pdf +DOC := lfc_draft.pdf # tex settings TEX := xelatex \ @@ -10,29 +9,20 @@ TEX := xelatex \ -output-directory=$(BUILD_DIR) # automated stuff -_DRAFT := $(BUILD_DIR)/$(DRAFT) -_DRAFT_SRC := $(patsubst %.pdf,%.tex,$(DRAFT)) - -_FINAL := $(BUILD_DIR)/$(FINAL) -_FINAL_SRC := $(patsubst %.pdf,%.tex,$(FINAL)) +_DOC := $(BUILD_DIR)/$(DOC) +_DOC_SRC := $(patsubst %.pdf,%.tex,$(DOC)) # recipes -.PHONY: build_dir count count_draft count_final -all: $(_DRAFT) - -$(_DRAFT): $(_DRAFT_SRC) build_dir - $(TEX) $< +.PHONY: build_dir count +all: $(DOC) count -$(_FINAL): $(_FINAL_SRC) build_dir +$(DOC): $(_DOC_SRC) build_dir $(TEX) $< -count: count_draft - -count_draft: $(_DRAFT_SRC) - texcount -char $< +count: $(_DOC_SRC) + texcount -letter $< | tee count.txt + texcount $< | tee -a count.txt -count_final: $(_FINAL_SRC) - texcount $< build_dir: mkdir -p $(BUILD_DIR) |