run.mk: Make EXE_BASENAME something not "test"

This commit is contained in:
Jan Lindemann 2010-12-03 00:16:48 +00:00 committed by Jan Lindemann
commit fd71754229

View file

@ -3,7 +3,15 @@
# contact@jannet.de
# $Id$
EXE_BASENAME ?= $(notdir $(shell pwd))
DIR_BASENAME = $(notdir $(shell pwd))
ifeq ($(EXE_BASENAME),)
ifneq ($(DIR_BASENAME),test)
EXE_BASENAME = $(DIR_BASENAME)
else
EXE_BASENAME = test-$(notdir $(shell cd ..; pwd))
endif
endif
include $(MODDIR)/make/defs.mk
BUILD_HDR =