diff options
-rw-r--r-- | doc/topics/build.txt | 7 | ||||
-rw-r--r-- | makefile | 16 |
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 | ||
31 | Generates the project report using Pandoc. | 31 | Generates the project report using Pandoc. |
32 | |||
33 | |||
34 | About: Project archive | ||
35 | |||
36 | > make archive | ||
37 | |||
38 | Generates a compressed tarball containing the project sources and the compiled report as PDF. | ||
@@ -30,7 +30,9 @@ check: $$(patsubst $(TEST_DIR)/$$(PERCENT).c,$(BIN_DIR)/$$(PERCENT).test,$$(wild | |||
30 | 30 | ||
31 | report: $(DOC_DIR)/project-report.pdf $(DOC_DIR)/commits.log; | 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 |
@@ -79,3 +81,15 @@ $(DOC_DIR)/commits.log: | |||
79 | clean-report: | 81 | clean-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 | |||
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 | ||