-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathMakefile
More file actions
59 lines (47 loc) · 1.17 KB
/
Makefile
File metadata and controls
59 lines (47 loc) · 1.17 KB
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
56
57
58
59
# Download Booty
BOOTY_URL := https://raw.githubusercontent.com/amplify-edge/booty/master/scripts
ifeq ($(OS),Windows_NT)
BOOTY_URL:=$(BOOTY_URL)/install.ps1
else
BOOTY_URL:=$(BOOTY_URL)/install.sh
endif
SHELLCMD :=
ADD_PATH :=
ifeq ($(OS),Windows_NT)
SHELLCMD:=powershell -NoLogo -Sta -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -Command "Invoke-WebRequest -useb $(BOOTY_URL) | Invoke-Expression"
ADD_PATH:=export PATH=$$PATH:"/C/booty" # workaround for github CI
else
SHELLCMD:=curl -fsSL $(BOOTY_URL) | bash
ADD_PATH:=echo $$PATH
endif
# remove the "v" prefix
VERSION ?= $(shell echo $(TAGGED_VERSION) | cut -c 2-)
override FLU_SAMPLE_NAME =client
override FLU_LIB_NAME =client
all: print dep build print-end
## Print all settings
print:
@echo
@echo "-- MOD : start --"
@echo
## Print all settings
print-all: ## print
@booty os-print
@booty gw-print
$(MAKE) flu-print
$(MAKE) flu-gen-lang-print
print-end:
@echo
@echo "-- MOD : end --"
@echo
@echo
dep:
$(SHELLCMD)
$(ADD_PATH)
@booty install-all
@booty extract includes
build: mod-disco-build
mod-disco-build:
cd ./mod-disco && $(MAKE) all
mod-disco-flu-web-run:
cd ./mod-disco && $(MAKE) flu-web-run