1 | # |
---|
2 | # $Id: Makefile 144 2010-09-28 11:19:10Z 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_src=$$($(DIRNAME) $$i); \ |
---|
38 | dir_dest=$(MORPHEO_PREFIX)/$$dir_src; \ |
---|
39 | file=$$($(BASENAME) $$i .po); \ |
---|
40 | $(MKDIR) $$dir_dest; \ |
---|
41 | $(ECHO) "Translate : $$i"; \ |
---|
42 | $(MSGFMT) $$i -o $$dir_dest/$$file.mo; \ |
---|
43 | done |
---|
44 | |
---|
45 | #~~~~~[ Clean ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
46 | |
---|
47 | clean : |
---|
48 | @\ |
---|
49 | $(RM) *~;\ |
---|
50 | $(MAKE) -C $(DIR_DOC) clean; |
---|
51 | |
---|
52 | |
---|
53 | clean_all : |
---|
54 | @\ |
---|
55 | $(RM) *~ $(DIR_LOCALE)/*/*/*.mo;\ |
---|
56 | $(MAKE) -C $(DIR_DOC) clean_all;\ |
---|
57 | $(MAKE) Morpheo_library_clean |
---|
58 | |
---|
59 | |
---|
60 | #~~~~~[ Help ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
61 | |
---|
62 | help : |
---|
63 | @\ |
---|
64 | $(ECHO) "";\ |
---|
65 | $(ECHO) "=====[ help ]====================================";\ |
---|
66 | $(ECHO) "";\ |
---|
67 | $(ECHO) " Rules Description";\ |
---|
68 | $(ECHO) "";\ |
---|
69 | $(ECHO) " * all cf rule \"help\"";\ |
---|
70 | $(ECHO) " * clean Delete temporary files";\ |
---|
71 | $(ECHO) " * clean_all Delete all generated files";\ |
---|
72 | $(ECHO) " * doc View documentation files";\ |
---|
73 | $(ECHO) " * help Print this message";\ |
---|
74 | $(ECHO) " * lib Generate the library to include";\ |
---|
75 | $(ECHO) " * translate Generate the traduction";\ |
---|
76 | $(ECHO) ""; |
---|
77 | |
---|
78 | include Makefile.deps |
---|