* Makefile
! Fixed to not try to execute hbrun when it doesn't exist
(f.e. when building libs only).
48 lines
872 B
Makefile
48 lines
872 B
Makefile
#
|
|
# $Id$
|
|
#
|
|
|
|
ROOT := ./
|
|
|
|
include $(ROOT)config/global.mk
|
|
|
|
ifeq ($(HB_BUILD_PARTS),compiler)
|
|
|
|
DIRS := \
|
|
src \
|
|
utils{src} \
|
|
|
|
else
|
|
|
|
ifeq ($(HB_BUILD_PARTS),lib)
|
|
HB_UTIL_DIR :=
|
|
else
|
|
HB_UTIL_DIR := utils{src}
|
|
endif
|
|
|
|
DIRS := \
|
|
doc \
|
|
include \
|
|
external \
|
|
src{external} \
|
|
$(HB_UTIL_DIR) \
|
|
contrib{src} \
|
|
|
|
endif
|
|
|
|
include $(ROOT)config/dir.mk
|
|
|
|
ifeq ($(HB_SHELL),sh)
|
|
HB_POSTINST := $(TOP)$(ROOT)bin/postinst.sh
|
|
else
|
|
ifeq ($(HB_SHELL),os2)
|
|
HB_POSTINST := $(subst /,\,$(TOP)$(ROOT)bin/postinst.cmd)
|
|
else
|
|
HB_POSTINST := $(subst /,\,$(TOP)$(ROOT)bin/postinst.bat)
|
|
endif
|
|
endif
|
|
|
|
install::
|
|
$(if $(wildcard $(HB_HOST_BIN_DIR)/hbrun$(HB_HOST_BIN_EXT)),+$(HB_HOST_BIN_DIR)/hbrun$(HB_HOST_BIN_EXT) --hb:gtcgi $(TOP)$(ROOT)config/postinst.prg,)
|
|
$(if $(wildcard $(HB_POSTINST)),+$(HB_POSTINST),)
|