Last change
on this file since 61 was
48,
checked in by rosiere, 17 years ago
|
Modification des Makefile : pas de creation inutile de shell
|
File size:
1.4 KB
|
Line | |
---|
1 | #-----[ Directory ]---------------------------------------- |
---|
2 | DIR_DOC = doc |
---|
3 | DIR_LIB = lib |
---|
4 | DIR_TEST = SelfTest |
---|
5 | |
---|
6 | #-----[ Variable ]----------------------------------------- |
---|
7 | OBJECTS = $(OBJECTS_COMMON) |
---|
8 | |
---|
9 | #-----[ Rules ]-------------------------------------------- |
---|
10 | .PRECIOUS : $(DIR_LIB)/%.a |
---|
11 | .NOPARALLEL : clean help |
---|
12 | |
---|
13 | all_component : test_env $(DIR_OBJ) $(DIR_LIB) $(OBJECTS) $(HEADERS) |
---|
14 | @$(MAKE) $(LIBRARY) |
---|
15 | |
---|
16 | $(DIR_LIB)/%.a : $(OBJECTS) $(HEADERS) |
---|
17 | @\ |
---|
18 | $(ECHO) "Archive : $*";\ |
---|
19 | $(AR) -r $@ $(OBJECTS);\ |
---|
20 | $(RANLIB) $@; |
---|
21 | |
---|
22 | $(DIR_LIB) : |
---|
23 | @\ |
---|
24 | $(ECHO) "Create directory : $@";\ |
---|
25 | $(MKDIR) $@; |
---|
26 | |
---|
27 | document : |
---|
28 | @$(MAKE) --directory=$(DIR_DOC) --makefile=Makefile |
---|
29 | |
---|
30 | component_clean : |
---|
31 | @$(RM) $(DIR_LIB) |
---|
32 | |
---|
33 | component_help : |
---|
34 | @\ |
---|
35 | $(ECHO) " -----[ Component ]----------------------------------";\ |
---|
36 | $(ECHO) "";\ |
---|
37 | $(ECHO) " * all_component : compile all c++ file and generate library";\ |
---|
38 | $(ECHO) " * document : Generate documantation";\ |
---|
39 | $(ECHO) " * clean : Erase all generate files";\ |
---|
40 | $(ECHO) " * help : print this text";\ |
---|
41 | $(ECHO) ""; |
---|
42 | |
---|
43 | |
---|
44 | help : |
---|
45 | @\ |
---|
46 | $(MAKE) common_help;\ |
---|
47 | $(MAKE) component_help; |
---|
48 | |
---|
49 | clean : |
---|
50 | @\ |
---|
51 | $(MAKE) common_clean ;\ |
---|
52 | $(MAKE) component_clean;\ |
---|
53 | if $(TEST) -d $(DIR_DOC); then $(MAKE) --directory=$(DIR_DOC) --makefile=Makefile clean; fi; |
---|
Note: See
TracBrowser
for help on using the repository browser.