forked from m2gi-guidettj/AllocateurMemoire
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
43 lines (33 loc) · 863 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
MAKE=make
TAR=tar
MV=mv
# compiler les sources
all:
$(MAKE) -C src
$(MAKE) -C tests
# nettoyer les sources
clean:
$(MAKE) -C src clean
$(MAKE) -C tests clean
# compiler les tests
tests: all
$(MAKE) -C tests all
test: all
$(MAKE) -C tests test
test_all: all
$(MAKE) -C tests test_all
archive:
$(MAKE) -C src clean
$(TAR) -cvjf ../`basename $$PWD`.tar.bz2 --exclude `basename $$PWD`/`basename $$PWD` --exclude .git --exclude *.tar.bz2 --exclude *.tar.gz --exclude googletest-release-* --exclude build* --exclude googletest-usr -C .. `basename $$PWD`
$(MV) ../`basename $$PWD`.tar.bz2 ./
googletest:
$(MAKE) -C tests googletest
distclean: clean testclean
$(MAKE) -C src distclean
# nettoyage
testclean:
ifeq ($(TESTS_C_DIR_EXISTS), 1)
$(MAKE) -C tests_c clean
endif
$(MAKE) -C tests clean
.PHONY: clean all googletest test test_all distclean