summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--doc/topics/build.txt7
-rw-r--r--makefile16
2 files changed, 22 insertions, 1 deletions
diff --git a/doc/topics/build.txt b/doc/topics/build.txt
index c461434..979d172 100644
--- a/doc/topics/build.txt
+++ b/doc/topics/build.txt
@@ -29,3 +29,10 @@ About: Project report
29> make report 29> make report
30 30
31Generates the project report using Pandoc. 31Generates the project report using Pandoc.
32
33
34About: Project archive
35
36> make archive
37
38Generates a compressed tarball containing the project sources and the compiled report as PDF.
diff --git a/makefile b/makefile
index 55a4a9c..b4cc66a 100644
--- a/makefile
+++ b/makefile
@@ -30,7 +30,9 @@ check: $$(patsubst $(TEST_DIR)/$$(PERCENT).c,$(BIN_DIR)/$$(PERCENT).test,$$(wild
30 30
31report: $(DOC_DIR)/project-report.pdf $(DOC_DIR)/commits.log; 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
@@ -79,3 +81,15 @@ $(DOC_DIR)/commits.log:
79clean-report: 81clean-report:
80 $(RM) -r $(DOC_DIR)/project-report.pdf 82 $(RM) -r $(DOC_DIR)/project-report.pdf
81 $(RM) -r $(DOC_DIR)/commits.log 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