forked from dylanlyu/vodka
/
Makefile
51 lines (40 loc) · 1.24 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
SCRIPTS = $(shell pwd)/scripts
PROJECT = $(shell pwd)
GO = $(shell which go)
OUTPUTS = $(shell pwd)/deploy
authority:
GOOS=linux GOARCH=amd64 $(GO) build -o $(OUTPUTS)/authority cmd/lambda/authority.go
zip -D -j -r $(OUTPUTS)/authority.zip $(OUTPUTS)/authority
clean:
rm -rf $(OUTPUTS)
task:
make clean
make accounts
setup:
cp $(SCRIPTS)/environment.example $(SCRIPTS)/debug.sh
cp $(SCRIPTS)/environment.example $(SCRIPTS)/testing.sh
cp $(SCRIPTS)/environment.example $(SCRIPTS)/production.sh
cp $(SCRIPTS)/migration.example $(SCRIPTS)/migrationDebug.sh
cp $(SCRIPTS)/migration.example $(SCRIPTS)/migrationTesting.sh
cp $(SCRIPTS)/migration.example $(SCRIPTS)/migrationProduction.sh
cp $(PROJECT)/air.example $(PROJECT)/.air.toml
debug:
chmod a+x $(SCRIPTS)/debug.sh
$(SCRIPTS)/debug.sh
testing:
chmod a+x $(SCRIPTS)/testing.sh
$(SCRIPTS)/testing.sh
production:
chmod a+x $(SCRIPTS)/production.sh
$(SCRIPTS)/production.sh
migrationDebug:
chmod a+x $(SCRIPTS)/migrationDebug.sh
$(SCRIPTS)/migrationDebug.sh
migrationTesting:
chmod a+x $(SCRIPTS)/migrationTesting.sh
$(SCRIPTS)/migrationTesting.sh
migrationProduction:
chmod a+x $(SCRIPTS)/migrationProduction.sh
$(SCRIPTS)/migrationProduction.sh
changeLog:
git-chglog > ./README.md