Changeset 137 for trunk/Platforms/Test/Makefile
- Timestamp:
- Feb 16, 2010, 1:35:48 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Platforms/Test/Makefile
r136 r137 52 52 PATH_BIN = $(MORPHEO_PREFIX)/bin 53 53 PATH_LOG = $(MORPHEO_TMP)/log 54 PATH_GMON = $(MORPHEO_TMP)/gmon 54 55 PATH_DATA = ./data 55 56 PATH_LOGS = $(patsubst $(PATH_DATA)/%,$(PATH_LOG)/%,$(wildcard $(PATH_DATA)/*)) … … 193 194 194 195 195 $(PATH_LOG)/%.log : $(PATH_DATA)/%.cfg $(EXEC) $(PATH_LOGS) 196 $(PATH_LOG)/%.log : $(PATH_DATA)/%.cfg $(EXEC) $(PATH_LOGS) $(PATH_GMON) 196 197 @\ 197 198 file=$$($(BASENAME) $<); \ … … 199 200 log=$@; \ 200 201 $(ECHO) "Run : $*"; \ 201 $(EXEC_PREFIX) $(EXEC) $(EXEC_PARAMS) $${data} &> $$log; \ 202 \ 203 file_gmon=$$($(BASENAME) $*); \ 204 dir_gmon=$$($(DIRNAME) $*); \ 205 $(MKDIR) $(PATH_GMON)/$$dir_gmon; \ 206 export GMON_OUT_PREFIX=$(PATH_GMON)/$$dir_gmon/$$file_gmon;\ 207 \ 208 $(EXEC_PREFIX) $(EXEC) $(EXEC_PARAMS) $${data} &> $$log;\ 202 209 $(GREP) -q "Test OK" $$log; \ 203 210 declare -i test_ok=$$?; \ … … 233 240 $(CXX) $(PLATFORMS_CXX_FLAGS) -c -o $@ $<; 234 241 235 $(PATH_OBJ) $(PATH_BIN) $(PATH_LOGS) :242 $(PATH_OBJ) $(PATH_BIN) $(PATH_LOGS) $(PATH_GMON) : 236 243 @\ 237 244 $(ECHO) "Create directory : $@";\ … … 243 250 @\ 244 251 $(ECHO) "Delete temporary files in directory $(PWD)";\ 245 $(RM) $(OBJECTS) $(EXEC) $(LOGS) \ 246 *~ $(PATH_SRC)/*~ $(PATH_INC)/*~ $(PATH_DATA)/*/*~ *.res *.txt\ 252 $(RM) $(OBJECTS);\ 253 $(RM) $(EXEC);\ 254 $(RM) $(PATH_LOGS); \ 255 $(RM) $(PATH_GMON); \ 256 $(RM) *~ $(PATH_SRC)/*~ $(PATH_INC)/*~ $(PATH_DATA)/*/*~ *.res *.txt\ 247 257 *core* \ 248 258 tty* \ … … 257 267 $(ECHO) "Delete generated files in directory $(PWD)";\ 258 268 $(RM) $(PATH_OBJ) $(PATH_BIN) $(PATH_LOG) $(SCRIPT);\ 259 $(MAKE) --directory=$(PATH_SOFT) 269 $(MAKE) --directory=$(PATH_SOFT) --makefile=Makefile clean_all; \ 260 270 $(MAKE) --directory=$(ENVIRONMENT_DIR) --makefile=Makefile clean_all; \ 261 271 $(MAKE) --directory=$(MORPHEO_DIR) --makefile=Makefile clean_all;
Note: See TracChangeset
for help on using the changeset viewer.