Last change
on this file since 50 was
48,
checked in by rosiere, 17 years ago
|
Modification des Makefile : pas de creation inutile de shell
|
File size:
1.4 KB
|
Rev | Line | |
---|
[23] | 1 | #-----[ Directory ]---------------------------------------- |
---|
| 2 | DIR_DOC = doc |
---|
[2] | 3 | DIR_LIB = lib |
---|
| 4 | DIR_TEST = SelfTest |
---|
| 5 | |
---|
[23] | 6 | #-----[ Variable ]----------------------------------------- |
---|
[2] | 7 | OBJECTS = $(OBJECTS_COMMON) |
---|
| 8 | |
---|
[23] | 9 | #-----[ Rules ]-------------------------------------------- |
---|
[2] | 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) |
---|
[48] | 17 | @\ |
---|
| 18 | $(ECHO) "Archive : $*";\ |
---|
| 19 | $(AR) -r $@ $(OBJECTS);\ |
---|
| 20 | $(RANLIB) $@; |
---|
[2] | 21 | |
---|
| 22 | $(DIR_LIB) : |
---|
[48] | 23 | @\ |
---|
| 24 | $(ECHO) "Create directory : $@";\ |
---|
| 25 | $(MKDIR) $@; |
---|
[2] | 26 | |
---|
[23] | 27 | document : |
---|
| 28 | @$(MAKE) --directory=$(DIR_DOC) --makefile=Makefile |
---|
| 29 | |
---|
[2] | 30 | component_clean : |
---|
| 31 | @$(RM) $(DIR_LIB) |
---|
| 32 | |
---|
| 33 | component_help : |
---|
[48] | 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) ""; |
---|
[2] | 42 | |
---|
| 43 | |
---|
| 44 | help : |
---|
[48] | 45 | @\ |
---|
| 46 | $(MAKE) common_help;\ |
---|
| 47 | $(MAKE) component_help; |
---|
| 48 | |
---|
[2] | 49 | clean : |
---|
[48] | 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.