Index: trunk/IPs/systemC/processor/Morpheo/Makefile
===================================================================
--- trunk/IPs/systemC/processor/Morpheo/Makefile	(revision 81)
+++ trunk/IPs/systemC/processor/Morpheo/Makefile	(revision 88)
@@ -1,98 +1,58 @@
-include $(MORPHEO_TOPLEVEL)/Makefile.tools
+# 
+# $Id$
+# 
+# [ Description ]
+# 
+# Makefile
+# 
+
+#----------------------------------------------------------------------
+#----------------------------------------------------------------------
+#-----[ Variables ]----------------------------------------------------
+#----------------------------------------------------------------------
+#----------------------------------------------------------------------
 
 #-----[ Directory ]----------------------------------------------------
-DIR_LIB			= Library
-DIR_DOC			= Documentation/Source
+DIR_DOC			= ./Documentation/Source
+DIR_LOCALE		= ./locale
 
-#-----[ Options ]------------------------------------------------------
+#----------------------------------------------------------------------
+#----------------------------------------------------------------------
+#-----[ Rules ]--------------------------------------------------------
+#----------------------------------------------------------------------
+#----------------------------------------------------------------------
+.PHONY			: all help lib translate clean clean_all
 
-PREFIXE_PATH		= "."
-SUFFIXE_PATH            = ".txt"
+all			: doc translate lib
 
-#-----[ Rules ]--------------------------------------------------------
-.PHONY			: all help
-
-all			: help
-
-#~~~~~[ doc ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 doc			:
 			@\
-			$(ECHO) "";\
-			$(ECHO) "=====[ doc ]=====================================";\
-			$(ECHO) "";\
-			$(MAKE) -C $(DIR_DOC) view;
+			$(MAKE) -C $(DIR_DOC) doc;
 
-#~~~~~[ path ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-path			:
+lib 			: Morpheo_library
+
+translate		:
 			@\
-			$(ECHO) "";\
-			$(ECHO) "=====[ path ]====================================";\
-			$(ECHO) "";\
-			$(ECHO) -n "+ ";\
-			$(BASENAME) $(PWD);\
-			$(ECHO) "| <Top Level>";\
-			$(ECHO) "|";\
-			$(MAKE) path_rec TAB="|    " DIR_PATH=.;
+			for i in $(DIR_LOCALE)/*/*/*.po; do 		\
+				dir=$$($(DIRNAME) $$i); 		\
+				file=$$($(BASENAME) $$i .po);		\
+				$(ECHO) "Translate          : $$i";	\
+				$(MSGFMT) $$i -o $$dir/$$file.mo;	\
+			done
 
-path_rec		:
-			@\
-			for files in `$(LS) $(DIR_PATH)`; do								\
-			    	if $(TEST) -d $(DIR_PATH)/$$files; 							\
-				then 											\
-					$(ECHO) "$(TAB)+ $$files";							\
-															\
-					if test -f $(DIR_PATH)/$(PREFIXE_PATH)`$(BASENAME) $$files`$(SUFFIXE_PATH);	\
-					then										\
-						$(ECHO) "$(TAB)| <\c";							\
-						$(CAT) $(DIR_PATH)/$(PREFIXE_PATH)`$(BASENAME) $$files`$(SUFFIXE_PATH);	\
-						$(ECHO) ">";								\
-					else										\
-						$(ECHO) "$(TAB)| <No description>";					\
-					fi;										\
-					$(ECHO) "$(TAB)|"; 								\
-															\
-					$(MAKE) path_rec TAB="$(TAB)|    " DIR_PATH=$(DIR_PATH)/$$files;		\
-				fi;											\
-			done;
-
-#~~~~~[ Lib ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-
-lib 			:
-			@\
-			$(ECHO) "";\
-			$(ECHO) "=====[ lib ]=====================================";\
-			$(ECHO) "";\
-			$(ECHO) " Function unimplemented";\
-			$(ECHO) "";
-
-#			@$(ECHO) " The library is generate into the directory : $(PWD)/$(DIR_LIB)"
-
-#~~~~~[ Maintenance ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+#~~~~~[ Clean ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
 clean 			:
 			@\
-			$(ECHO) "";\
-			$(ECHO) "=====[ clean ]===================================";\
-			$(ECHO) "";\
-			$(ECHO) "Delete     temporary files              "$(PWD);\
-			$(RM) *~;
-#			@$(MAKE) clean_rec DIR_CLEAN=.
+			$(RM) *~;\
+			$(MAKE) -C $(DIR_DOC) clean;
 
-#Clean recursive
-#clean_rec		:
-#			@$(ECHO) "Delete     temporary files in directory $(DIR_CLEAN)"
-#			@$(RM) -f $(DIR_CLEAN)/*~
-#			@										\
-#			if $(TEST) -f $(DIR_CLEAN)/Makefile -a "$(DIR_CLEAN)" != ".";			\
-#			then 										\
-#		       		($(CD) $(DIR_CLEAN); $(MAKE) clean;)                    		\
-#			else										\
-#				for files in `$(LS) $(DIR_CLEAN)`; do					\
-#				    	if $(TEST) -d $(DIR_CLEAN)/$$files; 				\
-#					then 								\
-#						$(MAKE) clean_rec DIR_CLEAN=$(DIR_CLEAN)/$$files;	\
-#					fi;								\
-#				done;									\
-#			fi;
+
+clean_all		:
+			@\
+			$(RM) *~ $(DIR_LOCALE)/*/*/*.mo;\
+			$(MAKE) -C $(DIR_DOC) clean_all;\
+			$(MAKE)  Morpheo_library_clean
+
 
 #~~~~~[ Help ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -107,8 +67,10 @@
 			$(ECHO) " * all              cf rule \"help\"";\
 			$(ECHO) " * clean            Delete temporary files";\
+			$(ECHO) " * clean_all        Delete all generated files";\
 			$(ECHO) " * doc              View documentation files";\
+			$(ECHO) " * help             Print this message";\
 			$(ECHO) " * lib              Generate the library to include";\
-			$(ECHO) " * help             Print this message";\
-			$(ECHO) " * path             Print a little description of each directory";\
+			$(ECHO) " * translate        Generate the traduction";\
 			$(ECHO) "";
 
+include Makefile.deps
