-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathMakefile
97 lines (70 loc) · 1.94 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
.DEFAULT_GOAL := release
.ONESHELL:
BUILD_DIR=build
BUILD_REPO_DIR=build/hosted
BUILD_PACKAGE_DIR=build/package
package: clean
mkdir -p $(BUILD_DIR)
mkdir -p $(BUILD_PACKAGE_DIR)
zip -r $(BUILD_PACKAGE_DIR)/alexa-skill-llm-intent-release.zip lambda -x lambda/\config.example.json -x lambda/\.venv/\* -x "**/__pycache__/**"
clean:
rm -rf $(BUILD_PACKAGE_DIR)
dev: clean
python -m venv .venv
. .venv/bin/activate
pip install -r lambda/requirements-dev.txt
# Hosted skill targets
list:
@echo "---"
@echo "🎯 Listing available hosted skill targets"
@echo "---"
@./dev.sh list
@echo "---"
new:
@echo "---"
@echo "🎯 Creating a new hosted skill target"
@echo "---"
@./dev.sh new
@echo "---"
@echo "✅ Hosted skill created. To push repo code, run 'make update'"
@echo "---"
import:
@echo "---"
@echo "🎯 Initializing hosted skill target with id $(id)"
@echo "---"
@./dev.sh init $(id)
@echo "---"
@echo "✅ Hosted skill initialized. To push repo code, run 'make update'"
@echo "---"
update:
@echo "---"
@echo "🎯 Updating hosted skill target $(skill)"
@echo "---"
@./dev.sh update $(skill)
@echo "---"
@echo "✅ Hosted skill $(skill) deployed. Check completion status in the Alexa Developer Console"
@echo "---"
config:
@echo "---"
@echo "🎯 Setting config file and invocation name for hosted skill target $(skill)"
@echo "---"
@./dev.sh config ${skill} $(file) ${invocation}
@echo "---"
@echo "✅ Config file and invocation name set for hosted skill target $(skill)"
@echo "---"
dialog:
@echo "---"
@echo "🎯 Starting dialog for hosted skill target $(skill)"
@echo "---"
@./dev.sh dialog $(skill)
@echo "---"
@echo "✅ Dialog Session for hosted skill target $(skill) terminated"
@echo "---"
debug:
@echo "---"
@echo "🎯 Debugging hosted skill target $(skill)"
@echo "---"
@./dev.sh debug $(skill)
@echo "---"
@echo "✅ Debugging session for hosted skill target $(skill) terminated"
@echo "---"