summaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
authorAdam NAILI2017-12-28 16:23:17 +0100
committerAdam NAILI2017-12-28 16:23:17 +0100
commit9e4eb30f33867bcb37d5accfb5588cfb3b450f90 (patch)
tree57cc389a1c302d8278246fb8334ada216be82a01 /makefile
parentaaf57e5ee1e0cf74afdbdf56293f1afd7e79e6b0 (diff)
parent426ddbdd27d21383a3870980f9b787a8c58237aa (diff)
downloadmorpher-9e4eb30f33867bcb37d5accfb5588cfb3b450f90.tar.gz
Merge remote-tracking branch 'origin/master' into gui
Diffstat (limited to 'makefile')
-rw-r--r--makefile24
1 files changed, 21 insertions, 3 deletions
diff --git a/makefile b/makefile
index 906516f..b4cc66a 100644
--- a/makefile
+++ b/makefile
@@ -28,9 +28,11 @@ 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 clean-archive;
34
35archive: 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
76clean-report: 81clean-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
90upem-c-morphing-adam-pacien.tar.gz: build check clean report
91 touch $@
92 tar --exclude-vcs --exclude=./$@ -zcvf ./$@ .
93
94clean-archive:
95 $(RM) upem-c-morphing-adam-pacien.tar.gz