summaryrefslogtreecommitdiff
path: root/Build/makefile
blob: f491b50b962ab78873a8262f00314974b5515978 (plain)
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
# 
# Usege : make -f <proj_root>/Build/makefile -C <proj_root> 
#
 
BUILD_SCRIPT_VERSION := 1.1.0

.PHONY : app_version app_build app_clean build_version


all : app_build

clean : app_clean

version : build_version

#PROJ_ROOT = .
BUILD_ROOT := $(PROJ_PATH)/Build#

ifeq ($(MAKE_NAME),mingw32-make)
ifneq ($(SHELL),)
OPTIONS += --eval="SHELL=$(SHELL)"
endif
endif

app_build :
	@echo $(MAKE) -f "$(BUILD_ROOT)/makefile.mk"
	@$(MAKE_BIN) -f "$(BUILD_ROOT)/makefile.mk" -C "$(PROJ_PATH)" $(OPTIONS)

app_clean :
	@$(MAKE) -f "$(BUILD_ROOT)/makefile.mk" -C "$(PROJ_PATH)" $(OPTIONS) clean

build_version :
	@echo makefile : $(BUILD_SCRIPT_VERSION)
	@$(MAKE) -f "$(BUILD_ROOT)/makefile.mk" -C "$(PROJ_PATH)" $(OPTIONS) version