mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-15 03:53:32 +01:00
run.mk: Support EXE_BASENAME
- Introduce EXE_BASENAME - Beautify windows run target
This commit is contained in:
parent
8fc16cc347
commit
59b74c0a5a
1 changed files with 5 additions and 9 deletions
14
make/run.mk
14
make/run.mk
|
|
@ -3,13 +3,7 @@
|
|||
# contact@jannet.de
|
||||
# $Id$
|
||||
|
||||
ifeq ($(EXE),)
|
||||
ifneq ($(TARGET),mingw)
|
||||
EXE = $(notdir $(shell pwd))
|
||||
else
|
||||
EXE = $(notdir $(shell pwd)).exe
|
||||
endif
|
||||
endif
|
||||
EXE_BASENAME ?= $(notdir $(shell pwd))
|
||||
|
||||
include $(MODDIR)/make/defs.mk
|
||||
BUILD_HDR =
|
||||
|
|
@ -30,8 +24,10 @@ valgrind:
|
|||
valgrind $(VALGRIND_OPTS) ./$(EXE) $(EXE_ARGS)
|
||||
|
||||
ifeq ($(TARGET),mingw)
|
||||
run: start.bat
|
||||
cat start.bat | wine cmd
|
||||
run:
|
||||
@echo "wine $(EXE) $(EXE_ARGS)"
|
||||
@echo -e "set PATH=%PATH;$(DLL_PATH)\n" \
|
||||
"$(EXE) $(EXE_ARGS)" | wine cmd
|
||||
|
||||
clean: winrunclean
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue