-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathMakefile
More file actions
45 lines (37 loc) · 902 Bytes
/
Makefile
File metadata and controls
45 lines (37 loc) · 902 Bytes
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
# 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
all: print dep build print-end
## Print all settings
print:
@echo
@echo "-- SYS-SHARE: start --"
@echo
@echo
print-end:
@echo
@echo "-- SYS-SHARE: end --"
@echo
@echo
dep:
@echo $(BOOTY_URL)
$(SHELLCMD)
$(ADD_PATH)
booty install-all
booty extract includes
build:
cd sys-core && $(MAKE) all
cd sys-account && $(MAKE) all