Files
harbour-core/harbour/Makefile
Viktor Szakats 35ab8e3f83 2010-03-29 09:52 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* Makefile
  - bin/postinst.prg
  + config/postinst.prg
    * Moved postinst.prg from bin to config dir.

  * config/postinst.prg
    + Changed to automatically build all tools found in /utils,
      thus dropping hard-wired tool names from postinst.
    * Minor cleanup.
2010-03-29 07:54:12 +00:00

48 lines
810 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::
+$(HB_HOST_BIN_DIR)/hbrun$(HB_HOST_BIN_EXT) --hb:gtcgi $(TOP)$(ROOT)config/postinst.prg
$(if $(wildcard $(HB_POSTINST)),+$(HB_POSTINST),)