make, scripts, tmpl/tex/de_presentation: Merged changes from V_1_2_0_35_NEUHAUS

This commit is contained in:
Jan Lindemann 2011-08-09 19:34:12 +00:00 committed by Jan Lindemann
commit f7f4010e52
11 changed files with 285 additions and 25 deletions

View file

@ -21,16 +21,15 @@ include $(MODDIR)/make/debugger.mk
EXE_PATH ?= ./$(EXE)
ifneq ($(wildcard local.supp),)
VALGRIND_OPTS += --suppressions=local.supp
endif
all:
install:
valgrind:
rm -f $(CORE)
valgrind $(VALGRIND_OPTS) $(EXE_PATH) $(EXE_ARGS)
callgrind:
rm -f $(CORE)
valgrind --tool=callgrind $(VALGRIND_OPTS) $(EXE_PATH) $(EXE_ARGS)
clean:
distclean:
ifeq ($(TARGET),mingw)
run test: all
@echo "wine $(EXE_PATH) $(EXE_ARGS)"
@ -46,6 +45,7 @@ clean: winrunclean
winrunclean:
rm -f start.bat
else
run test: all
rm -f $(CORE)
@ -54,6 +54,8 @@ start: all
rm -f $(CORE)
$(EXE_PATH) $(EXE_ARGS) &
clean: vg-clean-supp
# unfortunately iwatch only supports one directory :-(
autorun:
make run &
@ -65,6 +67,27 @@ wait-stop:
restart: stop wait-stop all start
valgrind:
rm -f $(CORE)
valgrind $(VALGRIND_OPTS) $(EXE_PATH) $(EXE_ARGS)
supp.tmp:
valgrind --gen-suppressions=all $(EXE_PATH) $(EXE_ARGS) 2>$@.tmp; mv $@.tmp $@ || exit 0
vg-create-supp: supp.tmp
cat $< | $(MOD_SCRIPT_DIR)/parse-valgrind-suppressions.sh > local.supp
rm -f supp.tmp
vg-add-supp:
cat | $(MOD_SCRIPT_DIR)/parse-valgrind-suppressions.sh >> local.supp
vg-clean-supp:
rm -f local.supp
callgrind:
rm -f $(CORE)
valgrind --tool=callgrind $(VALGRIND_OPTS) $(EXE_PATH) $(EXE_ARGS)
endif
stop: