mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-15 03:53:32 +01:00
make, scripts, tmpl/tex/de_presentation: Merged changes from V_1_2_0_35_NEUHAUS
This commit is contained in:
parent
8e0cb72081
commit
f7f4010e52
11 changed files with 285 additions and 25 deletions
39
make/run.mk
39
make/run.mk
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue