Files
harbour-core/harbour/Makefile
Viktor Szakats f6c7dde00c 2011-02-08 23:22 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* Makefile
  * contrib/Makefile
    + Changed script runner tool to hbmk2 (from hbrun).
      So now hbrun is not required for build process.

  * utils/Makefile
  * package/harbour.spec
  * INSTALL
    * Changed to reflect that now hbmk2 runs the build scripts.

  * utils/hbmk2/hbmk2.prg
  * utils/hbrun/hbrun.prg
    + Added hbrun_ProgrName() function to return runner executable name.
2011-02-08 22:23:10 +00:00

54 lines
986 B
Makefile

#
# $Id$
#
ROOT := ./
include $(ROOT)config/global.mk
ifeq ($(HB_BUILD_PARTS),compiler)
DIRS := \
src \
utils{src} \
else
# When doing a plain clean, we must not clean hbmk2
# before calling it to clean the contrib area.
_CONTRIB_FIRST :=
ifneq ($(filter clean,$(HB_MAKECMDGOALS)),)
ifeq ($(filter install,$(HB_MAKECMDGOALS)),)
_CONTRIB_FIRST := yes
endif
endif
DIRS := \
doc \
include \
src \
ifeq ($(_CONTRIB_FIRST),yes)
DIRS += \
contrib{src} \
utils{contrib} \
else
DIRS += \
utils{src} \
contrib{utils} \
endif
endif
include $(ROOT)config/dir.mk
ifneq ($(HB_NO_HBSCRIPT),yes)
first clean install::
$(if $(wildcard $(HB_HOST_BIN_DIR)/hbmk2$(HB_HOST_BIN_EXT)),+$(HB_HOST_BIN_DIR)/hbmk2$(HB_HOST_BIN_EXT) $(TOP)$(ROOT)config/postinst.hbs $@,@$(ECHO) $(ECHOQUOTE)! Warning: hbmk2 not found, config/postinst.hbs skipped.$(ECHOQUOTE))
endif