diff options
-rw-r--r-- | makefile | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -28,7 +28,7 @@ build: $$(patsubst $(SRC_DIR)/$$(PERCENT).c,$(BIN_DIR)/$$(PERCENT).o,$$(wildcard | |||
28 | .SECONDEXPANSION: | 28 | .SECONDEXPANSION: |
29 | check: $$(patsubst $(TEST_DIR)/$$(PERCENT).c,$(BIN_DIR)/$$(PERCENT).test,$$(wildcard $(TEST_DIR)/**/*.c)); | 29 | check: $$(patsubst $(TEST_DIR)/$$(PERCENT).c,$(BIN_DIR)/$$(PERCENT).test,$$(wildcard $(TEST_DIR)/**/*.c)); |
30 | 30 | ||
31 | report: $(DOC_DIR)/project-report.pdf; | 31 | report: $(DOC_DIR)/project-report.pdf $(DOC_DIR)/commits.log; |
32 | 32 | ||
33 | clean: clean-bin clean-api-doc clean-report; | 33 | clean: 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 | |||
76 | clean-report: | 79 | clean-report: |
77 | $(RM) -r $(DOC_DIR)/project-report.pdf | 80 | $(RM) -r $(DOC_DIR)/project-report.pdf |
81 | $(RM) -r $(DOC_DIR)/commits.log | ||