diff options
author | Adam NAILI | 2017-12-28 16:23:17 +0100 |
---|---|---|
committer | Adam NAILI | 2017-12-28 16:23:17 +0100 |
commit | 9e4eb30f33867bcb37d5accfb5588cfb3b450f90 (patch) | |
tree | 57cc389a1c302d8278246fb8334ada216be82a01 /makefile | |
parent | aaf57e5ee1e0cf74afdbdf56293f1afd7e79e6b0 (diff) | |
parent | 426ddbdd27d21383a3870980f9b787a8c58237aa (diff) | |
download | morpher-9e4eb30f33867bcb37d5accfb5588cfb3b450f90.tar.gz |
Merge remote-tracking branch 'origin/master' into gui
Diffstat (limited to 'makefile')
-rw-r--r-- | makefile | 24 |
1 files changed, 21 insertions, 3 deletions
@@ -28,9 +28,11 @@ 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 clean-archive; |
34 | |||
35 | archive: upem-c-morphing-adam-pacien.tar.gz; | ||
34 | 36 | ||
35 | 37 | ||
36 | ##### BINARIES GENERATION | 38 | ##### BINARIES GENERATION |
@@ -66,12 +68,28 @@ clean-api-doc: | |||
66 | 68 | ||
67 | 69 | ||
68 | ##### REPORT | 70 | ##### REPORT |
69 | .PRECIOUS: $(DOC_DIR)/%.pdf | 71 | .PRECIOUS: $(DOC_DIR)/%.pdf $(DOC_DIR)/commits.log |
70 | .PHONY: clean-report | 72 | .PHONY: clean-report |
71 | 73 | ||
72 | .SECONDEXPANSION: | 74 | .SECONDEXPANSION: |
73 | $(DOC_DIR)/%.pdf: $$(patsubst $$(PERCENT).pdf,$$(PERCENT).md,$$@) | 75 | $(DOC_DIR)/%.pdf: $$(patsubst $$(PERCENT).pdf,$$(PERCENT).md,$$@) |
74 | pandoc --template $(DOC_DIR)/report-template.tex --number-sections --listings --output $@ $< | 76 | pandoc --template $(DOC_DIR)/report-template.tex --number-sections --listings --output $@ $< |
75 | 77 | ||
78 | $(DOC_DIR)/commits.log: | ||
79 | git log > $@ | ||
80 | |||
76 | clean-report: | 81 | clean-report: |
77 | $(RM) -r $(DOC_DIR)/project-report.pdf | 82 | $(RM) -r $(DOC_DIR)/project-report.pdf |
83 | $(RM) -r $(DOC_DIR)/commits.log | ||
84 | |||
85 | |||
86 | ##### ARCHIVE | ||
87 | .PRECIOUS: upem-c-morphing-adam-pacien.tar.gz | ||
88 | .PHONY: clean-archive | ||
89 | |||
90 | upem-c-morphing-adam-pacien.tar.gz: build check clean report | ||
91 | touch $@ | ||
92 | tar --exclude-vcs --exclude=./$@ -zcvf ./$@ . | ||
93 | |||
94 | clean-archive: | ||
95 | $(RM) upem-c-morphing-adam-pacien.tar.gz | ||