-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathMakefile
More file actions
48 lines (39 loc) · 935 Bytes
/
Makefile
File metadata and controls
48 lines (39 loc) · 935 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
46
47
48
# 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
## Build in CI
all: print dep build print-end
print:
@echo
@echo -- SHARED REPO START--
@echo
print-end:
@echo
@echo -- SHARED REPO END --
@echo
## Print all settings
print-all: ## print
@booty os-print
@booty gw-print
@booty list-installed
dep:
$(SHELLCMD)
$(ADD_PATH)
@booty install-all
@booty extract includes
build:
# build
cd ./tool && $(MAKE) all