forked from harbour/core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
55 lines (38 loc) · 1.07 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
ROOT := ./
include $(ROOT)config/global.mk
DIRS :=
ifneq ($(wildcard lib/3rd/$(HB_PLATFORM)/$(HB_COMPILER)),)
DIRS += lib/3rd/$(HB_PLATFORM)/$(HB_COMPILER)
endif
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.hb $@,@$(ECHO) $(ECHOQUOTE)! Warning: hbmk2 not found, config/postinst.hb skipped.$(ECHOQUOTE))
endif