Changeset 15 for trunk/IPs/systemC/processor/Morpheo/Makefile
- Timestamp:
- Apr 5, 2007, 4:17:30 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Makefile
r2 r15 1 include $(SOC)/Makefile.tools 2 1 3 #-----[ Directory ]---------------------------------------------------- 2 4 DIR_LIB = Library 3 4 #-----[ Usual Commands ]----------------------------------------------- 5 6 RM = rm 7 ECHO = echo -e 8 CD = cd 9 LS = ls 10 PWD = `pwd` 11 TEST = test 12 MAKE = make -s 13 BASENAME = basename 14 CAT = cat 15 MKDIR = mkdir 16 17 #-----[ Particular Commands ]------------------------------------------ 5 DIR_DOC = Documentation/Source 18 6 19 7 #-----[ Options ]------------------------------------------------------ 20 DIR_DOC = Documentation/Source21 8 22 9 PREFIXE_PATH = "." … … 28 15 all : help 29 16 17 #~~~~~[ doc ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 30 18 doc : 31 19 @$(ECHO) "" … … 34 22 @$(MAKE) -C $(DIR_DOC) view 35 23 24 #~~~~~[ path ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 36 25 path : 37 26 @$(ECHO) "" … … 44 33 @$(MAKE) path_rec TAB="| " DIR_PATH=. 45 34 46 path_rec 35 path_rec : 47 36 @ \ 48 37 \ … … 74 63 @$(ECHO) " Function unimplemented" 75 64 @$(ECHO) "" 76 @$(ECHO) " The library is generate into the directory : $(PWD)/$(DIR_LIB)"65 # @$(ECHO) " The library is generate into the directory : $(PWD)/$(DIR_LIB)" 77 66 78 67 #~~~~~[ Maintenance ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ … … 83 72 @$(ECHO) "" 84 73 @$(ECHO) "Delete temporary files "$(PWD) 85 @$(MAKE) clean_rec DIR_CLEAN=.74 # @$(MAKE) clean_rec DIR_CLEAN=. 86 75 87 76 #Clean recursive 88 clean_rec :89 @$(ECHO) "Delete temporary files in directory $(DIR_CLEAN)"90 @$(RM) -f $(DIR_CLEAN)/*~91 @ \92 if $(TEST) -f $(DIR_CLEAN)/Makefile -a "$(DIR_CLEAN)" != "."; \93 then \94 ($(CD) $(DIR_CLEAN); $(MAKE) clean;) \95 else \96 for files in `$(LS) $(DIR_CLEAN)`; do \97 if $(TEST) -d $(DIR_CLEAN)/$$files; \98 then \99 $(MAKE) clean_rec DIR_CLEAN=$(DIR_CLEAN)/$$files; \100 fi; \101 done; \102 fi;77 #clean_rec : 78 # @$(ECHO) "Delete temporary files in directory $(DIR_CLEAN)" 79 # @$(RM) -f $(DIR_CLEAN)/*~ 80 # @ \ 81 # if $(TEST) -f $(DIR_CLEAN)/Makefile -a "$(DIR_CLEAN)" != "."; \ 82 # then \ 83 # ($(CD) $(DIR_CLEAN); $(MAKE) clean;) \ 84 # else \ 85 # for files in `$(LS) $(DIR_CLEAN)`; do \ 86 # if $(TEST) -d $(DIR_CLEAN)/$$files; \ 87 # then \ 88 # $(MAKE) clean_rec DIR_CLEAN=$(DIR_CLEAN)/$$files; \ 89 # fi; \ 90 # done; \ 91 # fi; 103 92 104 93 #~~~~~[ Help ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ … … 110 99 @$(ECHO) " Rules Description" 111 100 @$(ECHO) "" 112 @$(ECHO) " allcf rule \"help\""113 @$(ECHO) " cleanDelete temporary files"114 @$(ECHO) " docView documentation files"115 @$(ECHO) " libGenerate the library to include"116 @$(ECHO) " helpPrint this message"117 @$(ECHO) " pathPrint a little description of each directory"101 @$(ECHO) " * all cf rule \"help\"" 102 @$(ECHO) " * clean Delete temporary files" 103 @$(ECHO) " * doc View documentation files" 104 @$(ECHO) " * lib Generate the library to include" 105 @$(ECHO) " * help Print this message" 106 @$(ECHO) " * path Print a little description of each directory" 118 107 @$(ECHO) "" 119 108
Note: See TracChangeset
for help on using the changeset viewer.