run.mk: Support EXE_BASENAME

- Introduce EXE_BASENAME
  - Beautify windows run target
This commit is contained in:
Jan Lindemann 2007-11-03 20:37:32 +00:00 committed by Jan Lindemann
commit 59b74c0a5a

View file

@ -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