Files
harbour-core/harbour/Makefile
Viktor Szakats 3e86c38583 2010-08-03 14:27 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* config/postinst.hbs
    ! Fixed to only do install tasks in install build phase.
    * Changed to only regenerate headers in non-install phase.

  * Makefile
    + Passing build phase to postinst.hbs.

  * INSTALL
    + Elaborating a bit more on the meaning of 'local' in HB_WITH_*
      settings.
2010-08-04 12:28:10 +00:00

55 lines
1.0 KiB
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 hbrun and 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 \
external \
src{external}
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)/hbrun$(HB_HOST_BIN_EXT)),+$(HB_HOST_BIN_DIR)/hbrun$(HB_HOST_BIN_EXT) --hb:gtcgi $(TOP)$(ROOT)config/postinst.hbs $@,@$(ECHO) $(ECHOQUOTE)! Warning: hbrun not found, config/postinst.hbs skipped.$(ECHOQUOTE))
endif