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