mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-15 12:03:31 +01:00
run.mk: Remove all core files before run
Fix: Make sure that all core files are removed before the run target's command is executed. Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
7d7a75c389
commit
fe69ec6248
1 changed files with 6 additions and 16 deletions
22
make/run.mk
22
make/run.mk
|
|
@ -64,10 +64,11 @@ endif
|
||||||
|
|
||||||
all:
|
all:
|
||||||
install:
|
install:
|
||||||
clean:
|
clean: runclean localclean
|
||||||
distclean:
|
distclean:
|
||||||
|
|
||||||
run-prereq: all
|
run-prereq: all
|
||||||
|
$(RM) -f core core.* vgcore vgcore.*
|
||||||
|
|
||||||
ifeq ($(TARGET),mingw)
|
ifeq ($(TARGET),mingw)
|
||||||
run test: run-prereq
|
run test: run-prereq
|
||||||
|
|
@ -82,14 +83,12 @@ start: run-prereq
|
||||||
|
|
||||||
else
|
else
|
||||||
run test: run-prereq
|
run test: run-prereq
|
||||||
$(RM) -f core.*
|
|
||||||
$(EXE_PATH) $(EXE_ARGS)
|
$(EXE_PATH) $(EXE_ARGS)
|
||||||
start: run-prereq
|
start: run-prereq
|
||||||
$(RM) -f core.*
|
|
||||||
$(EXE_PATH) $(EXE_ARGS) &
|
$(EXE_PATH) $(EXE_ARGS) &
|
||||||
|
|
||||||
which:
|
which:
|
||||||
/usr/bin/which $(EXE_PATH)
|
$(WHICH) $(EXE_PATH)
|
||||||
|
|
||||||
$(SHORTCUT_SCRIPT):
|
$(SHORTCUT_SCRIPT):
|
||||||
ifeq ($(TARGET),mingw)
|
ifeq ($(TARGET),mingw)
|
||||||
|
|
@ -105,9 +104,7 @@ distclean.shortcut:
|
||||||
$(RM) -f $(SHORTCUT_SCRIPT)
|
$(RM) -f $(SHORTCUT_SCRIPT)
|
||||||
distclean: distclean.shortcut
|
distclean: distclean.shortcut
|
||||||
|
|
||||||
clean: vg-clean-supp clean.out
|
# unfortunately iwatch supports only one directory :-(
|
||||||
|
|
||||||
# unfortunately iwatch only supports one directory :-(
|
|
||||||
autorun:
|
autorun:
|
||||||
make run &
|
make run &
|
||||||
iwatch -e close_write -c "$(HOME)/bin/run-once.sh make restart" \
|
iwatch -e close_write -c "$(HOME)/bin/run-once.sh make restart" \
|
||||||
|
|
@ -119,15 +116,12 @@ wait-stop:
|
||||||
restart: stop wait-stop all start
|
restart: stop wait-stop all start
|
||||||
|
|
||||||
valgrind: run-prereq
|
valgrind: run-prereq
|
||||||
$(RM) -f core.*
|
|
||||||
valgrind $(VALGRIND_OPTS) $(EXE_PATH) $(EXE_ARGS)
|
valgrind $(VALGRIND_OPTS) $(EXE_PATH) $(EXE_ARGS)
|
||||||
|
|
||||||
valkyrie: run-prereq
|
valkyrie: run-prereq
|
||||||
$(RM) -f core.*
|
|
||||||
valkyrie $(VALGRIND_OPTS) $(EXE_PATH) $(EXE_ARGS)
|
valkyrie $(VALGRIND_OPTS) $(EXE_PATH) $(EXE_ARGS)
|
||||||
|
|
||||||
efence: run-prereq
|
efence: run-prereq
|
||||||
$(RM) -f core.*
|
|
||||||
ef $(EXE_PATH) $(EXE_ARGS)
|
ef $(EXE_PATH) $(EXE_ARGS)
|
||||||
|
|
||||||
supp.tmp:
|
supp.tmp:
|
||||||
|
|
@ -136,13 +130,13 @@ supp.tmp:
|
||||||
vg-create-supp: supp.tmp
|
vg-create-supp: supp.tmp
|
||||||
$(CAT) $< | $(JWB_SCRIPT_DIR)/parse-valgrind-suppressions.sh > local.supp
|
$(CAT) $< | $(JWB_SCRIPT_DIR)/parse-valgrind-suppressions.sh > local.supp
|
||||||
$(RM) -f supp.tmp
|
$(RM) -f supp.tmp
|
||||||
|
|
||||||
vg-add-supp:
|
vg-add-supp:
|
||||||
$(CAT) | $(JWB_SCRIPT_DIR)/parse-valgrind-suppressions.sh >> local.supp
|
$(CAT) | $(JWB_SCRIPT_DIR)/parse-valgrind-suppressions.sh >> local.supp
|
||||||
|
clean: vg-clean-supp
|
||||||
vg-clean-supp:
|
vg-clean-supp:
|
||||||
$(RM) -f local.supp
|
$(RM) -f local.supp
|
||||||
|
|
||||||
|
clean: clean.out
|
||||||
clean.out:
|
clean.out:
|
||||||
$(RM) -f run.out
|
$(RM) -f run.out
|
||||||
|
|
||||||
|
|
@ -152,7 +146,6 @@ snap:
|
||||||
check-conf:
|
check-conf:
|
||||||
$(CHECK_CONF_EXE) -p --log-flags console \
|
$(CHECK_CONF_EXE) -p --log-flags console \
|
||||||
$(shell echo $(EXE_ARGS) | sed 's/.*--config-file *//; s/ .*//')
|
$(shell echo $(EXE_ARGS) | sed 's/.*--config-file *//; s/ .*//')
|
||||||
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
stop:
|
stop:
|
||||||
|
|
@ -167,10 +160,7 @@ strace: $(EXE_PATH) $(EXE_BIN) run-prereq
|
||||||
strace -f $(STRACE_EXTRA_OPTS) $(EXE_PATH) $(EXE_ARGS)
|
strace -f $(STRACE_EXTRA_OPTS) $(EXE_PATH) $(EXE_ARGS)
|
||||||
|
|
||||||
tee: $(EXE_PATH) $(EXE_BIN) run-prereq
|
tee: $(EXE_PATH) $(EXE_BIN) run-prereq
|
||||||
$(RM) -f core.*
|
|
||||||
$(EXE_PATH) $(EXE_ARGS) 2>&1 | tee run.out
|
$(EXE_PATH) $(EXE_ARGS) 2>&1 | tee run.out
|
||||||
|
|
||||||
kcg:
|
kcg:
|
||||||
kcachegrind callgrind.*
|
kcachegrind callgrind.*
|
||||||
|
|
||||||
clean: runclean localclean
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue