1 | # |
---|
2 | # $Id: Makefile 91 2008-12-10 19:46:13Z rosiere $ |
---|
3 | # |
---|
4 | # [ Description ] |
---|
5 | # |
---|
6 | # Makefile |
---|
7 | # |
---|
8 | |
---|
9 | #---------------------------------------------------------------------- |
---|
10 | #---------------------------------------------------------------------- |
---|
11 | #-----[ Variables ]---------------------------------------------------- |
---|
12 | #---------------------------------------------------------------------- |
---|
13 | #---------------------------------------------------------------------- |
---|
14 | |
---|
15 | #-----[ Directory ]---------------------------------------------------- |
---|
16 | DIR_DOC = ./Documentation/ |
---|
17 | DIR_LOCALE = ./locale |
---|
18 | |
---|
19 | #---------------------------------------------------------------------- |
---|
20 | #---------------------------------------------------------------------- |
---|
21 | #-----[ Rules ]-------------------------------------------------------- |
---|
22 | #---------------------------------------------------------------------- |
---|
23 | #---------------------------------------------------------------------- |
---|
24 | .PHONY : all help lib translate clean clean_all |
---|
25 | |
---|
26 | all : doc translate lib |
---|
27 | |
---|
28 | doc : |
---|
29 | @\ |
---|
30 | $(MAKE) -C $(DIR_DOC) doc; |
---|
31 | |
---|
32 | lib : Morpheo_library |
---|
33 | |
---|
34 | translate : |
---|
35 | @\ |
---|
36 | for i in $(DIR_LOCALE)/*/*/*.po; do \ |
---|
37 | dir=$$($(DIRNAME) $$i); \ |
---|
38 | file=$$($(BASENAME) $$i .po); \ |
---|
39 | $(ECHO) "Translate : $$i"; \ |
---|
40 | $(MSGFMT) $$i -o $$dir/$$file.mo; \ |
---|
41 | done |
---|
42 | |
---|
43 | #~~~~~[ Clean ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
44 | |
---|
45 | clean : |
---|
46 | @\ |
---|
47 | $(RM) *~;\ |
---|
48 | $(MAKE) -C $(DIR_DOC) clean; |
---|
49 | |
---|
50 | |
---|
51 | clean_all : |
---|
52 | @\ |
---|
53 | $(RM) *~ $(DIR_LOCALE)/*/*/*.mo;\ |
---|
54 | $(MAKE) -C $(DIR_DOC) clean_all;\ |
---|
55 | $(MAKE) Morpheo_library_clean |
---|
56 | |
---|
57 | |
---|
58 | #~~~~~[ Help ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
59 | |
---|
60 | help : |
---|
61 | @\ |
---|
62 | $(ECHO) "";\ |
---|
63 | $(ECHO) "=====[ help ]====================================";\ |
---|
64 | $(ECHO) "";\ |
---|
65 | $(ECHO) " Rules Description";\ |
---|
66 | $(ECHO) "";\ |
---|
67 | $(ECHO) " * all cf rule \"help\"";\ |
---|
68 | $(ECHO) " * clean Delete temporary files";\ |
---|
69 | $(ECHO) " * clean_all Delete all generated files";\ |
---|
70 | $(ECHO) " * doc View documentation files";\ |
---|
71 | $(ECHO) " * help Print this message";\ |
---|
72 | $(ECHO) " * lib Generate the library to include";\ |
---|
73 | $(ECHO) " * translate Generate the traduction";\ |
---|
74 | $(ECHO) ""; |
---|
75 | |
---|
76 | include Makefile.deps |
---|