Changeset 88 for trunk/IPs/systemC/processor/Morpheo/Makefile
- Timestamp:
- Dec 10, 2008, 7:31:39 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Makefile
r81 r88 1 include $(MORPHEO_TOPLEVEL)/Makefile.tools 1 # 2 # $Id$ 3 # 4 # [ Description ] 5 # 6 # Makefile 7 # 8 9 #---------------------------------------------------------------------- 10 #---------------------------------------------------------------------- 11 #-----[ Variables ]---------------------------------------------------- 12 #---------------------------------------------------------------------- 13 #---------------------------------------------------------------------- 2 14 3 15 #-----[ Directory ]---------------------------------------------------- 4 DIR_ LIB = Library5 DIR_ DOC = Documentation/Source16 DIR_DOC = ./Documentation/Source 17 DIR_LOCALE = ./locale 6 18 7 #-----[ Options ]------------------------------------------------------ 19 #---------------------------------------------------------------------- 20 #---------------------------------------------------------------------- 21 #-----[ Rules ]-------------------------------------------------------- 22 #---------------------------------------------------------------------- 23 #---------------------------------------------------------------------- 24 .PHONY : all help lib translate clean clean_all 8 25 9 PREFIXE_PATH = "." 10 SUFFIXE_PATH = ".txt" 26 all : doc translate lib 11 27 12 #-----[ Rules ]--------------------------------------------------------13 .PHONY : all help14 15 all : help16 17 #~~~~~[ doc ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~18 28 doc : 19 29 @\ 20 $(ECHO) "";\ 21 $(ECHO) "=====[ doc ]=====================================";\ 22 $(ECHO) "";\ 23 $(MAKE) -C $(DIR_DOC) view; 30 $(MAKE) -C $(DIR_DOC) doc; 24 31 25 #~~~~~[ path ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 26 path : 32 lib : Morpheo_library 33 34 translate : 27 35 @\ 28 $(ECHO) "";\ 29 $(ECHO) "=====[ path ]====================================";\ 30 $(ECHO) "";\ 31 $(ECHO) -n "+ ";\ 32 $(BASENAME) $(PWD);\ 33 $(ECHO) "| <Top Level>";\ 34 $(ECHO) "|";\ 35 $(MAKE) path_rec TAB="| " DIR_PATH=.; 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 36 42 37 path_rec : 38 @\ 39 for files in `$(LS) $(DIR_PATH)`; do \ 40 if $(TEST) -d $(DIR_PATH)/$$files; \ 41 then \ 42 $(ECHO) "$(TAB)+ $$files"; \ 43 \ 44 if test -f $(DIR_PATH)/$(PREFIXE_PATH)`$(BASENAME) $$files`$(SUFFIXE_PATH); \ 45 then \ 46 $(ECHO) "$(TAB)| <\c"; \ 47 $(CAT) $(DIR_PATH)/$(PREFIXE_PATH)`$(BASENAME) $$files`$(SUFFIXE_PATH); \ 48 $(ECHO) ">"; \ 49 else \ 50 $(ECHO) "$(TAB)| <No description>"; \ 51 fi; \ 52 $(ECHO) "$(TAB)|"; \ 53 \ 54 $(MAKE) path_rec TAB="$(TAB)| " DIR_PATH=$(DIR_PATH)/$$files; \ 55 fi; \ 56 done; 57 58 #~~~~~[ Lib ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 59 60 lib : 61 @\ 62 $(ECHO) "";\ 63 $(ECHO) "=====[ lib ]=====================================";\ 64 $(ECHO) "";\ 65 $(ECHO) " Function unimplemented";\ 66 $(ECHO) ""; 67 68 # @$(ECHO) " The library is generate into the directory : $(PWD)/$(DIR_LIB)" 69 70 #~~~~~[ Maintenance ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 43 #~~~~~[ Clean ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 71 44 72 45 clean : 73 46 @\ 74 $(ECHO) "";\ 75 $(ECHO) "=====[ clean ]===================================";\ 76 $(ECHO) "";\ 77 $(ECHO) "Delete temporary files "$(PWD);\ 78 $(RM) *~; 79 # @$(MAKE) clean_rec DIR_CLEAN=. 47 $(RM) *~;\ 48 $(MAKE) -C $(DIR_DOC) clean; 80 49 81 #Clean recursive 82 #clean_rec : 83 # @$(ECHO) "Delete temporary files in directory $(DIR_CLEAN)" 84 # @$(RM) -f $(DIR_CLEAN)/*~ 85 # @ \ 86 # if $(TEST) -f $(DIR_CLEAN)/Makefile -a "$(DIR_CLEAN)" != "."; \ 87 # then \ 88 # ($(CD) $(DIR_CLEAN); $(MAKE) clean;) \ 89 # else \ 90 # for files in `$(LS) $(DIR_CLEAN)`; do \ 91 # if $(TEST) -d $(DIR_CLEAN)/$$files; \ 92 # then \ 93 # $(MAKE) clean_rec DIR_CLEAN=$(DIR_CLEAN)/$$files; \ 94 # fi; \ 95 # done; \ 96 # fi; 50 51 clean_all : 52 @\ 53 $(RM) *~ $(DIR_LOCALE)/*/*/*.mo;\ 54 $(MAKE) -C $(DIR_DOC) clean_all;\ 55 $(MAKE) Morpheo_library_clean 56 97 57 98 58 #~~~~~[ Help ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ … … 107 67 $(ECHO) " * all cf rule \"help\"";\ 108 68 $(ECHO) " * clean Delete temporary files";\ 69 $(ECHO) " * clean_all Delete all generated files";\ 109 70 $(ECHO) " * doc View documentation files";\ 71 $(ECHO) " * help Print this message";\ 110 72 $(ECHO) " * lib Generate the library to include";\ 111 $(ECHO) " * help Print this message";\ 112 $(ECHO) " * path Print a little description of each directory";\ 73 $(ECHO) " * translate Generate the traduction";\ 113 74 $(ECHO) ""; 114 75 76 include Makefile.deps
Note: See TracChangeset
for help on using the changeset viewer.