summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/makefile b/makefile
index 906516f..55a4a9c 100644
--- a/makefile
+++ b/makefile
@@ -28,7 +28,7 @@ build: $$(patsubst $(SRC_DIR)/$$(PERCENT).c,$(BIN_DIR)/$$(PERCENT).o,$$(wildcard
28.SECONDEXPANSION: 28.SECONDEXPANSION:
29check: $$(patsubst $(TEST_DIR)/$$(PERCENT).c,$(BIN_DIR)/$$(PERCENT).test,$$(wildcard $(TEST_DIR)/**/*.c)); 29check: $$(patsubst $(TEST_DIR)/$$(PERCENT).c,$(BIN_DIR)/$$(PERCENT).test,$$(wildcard $(TEST_DIR)/**/*.c));
30 30
31report: $(DOC_DIR)/project-report.pdf; 31report: $(DOC_DIR)/project-report.pdf $(DOC_DIR)/commits.log;
32 32
33clean: clean-bin clean-api-doc clean-report; 33clean: clean-bin clean-api-doc clean-report;
34 34
@@ -66,12 +66,16 @@ clean-api-doc:
66 66
67 67
68##### REPORT 68##### REPORT
69.PRECIOUS: $(DOC_DIR)/%.pdf 69.PRECIOUS: $(DOC_DIR)/%.pdf $(DOC_DIR)/commits.log
70.PHONY: clean-report 70.PHONY: clean-report
71 71
72.SECONDEXPANSION: 72.SECONDEXPANSION:
73$(DOC_DIR)/%.pdf: $$(patsubst $$(PERCENT).pdf,$$(PERCENT).md,$$@) 73$(DOC_DIR)/%.pdf: $$(patsubst $$(PERCENT).pdf,$$(PERCENT).md,$$@)
74 pandoc --template $(DOC_DIR)/report-template.tex --number-sections --listings --output $@ $< 74 pandoc --template $(DOC_DIR)/report-template.tex --number-sections --listings --output $@ $<
75 75
76$(DOC_DIR)/commits.log:
77 git log > $@
78
76clean-report: 79clean-report:
77 $(RM) -r $(DOC_DIR)/project-report.pdf 80 $(RM) -r $(DOC_DIR)/project-report.pdf
81 $(RM) -r $(DOC_DIR)/commits.log