-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathMakefile
More file actions
63 lines (44 loc) · 1.39 KB
/
Makefile
File metadata and controls
63 lines (44 loc) · 1.39 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
60
61
62
63
# spellchecker: disable
generate: bundle queries mapping
bundle:
go generate ./internal/eveicon ;
go generate ./internal/eveimageservice ;
go generate ./internal/app/icons ;
mapping:
go generate ./internal/eveicon ;
go generate ./internal/xgoesi ;
queries:
sqlc generate
build-appimage:
tools/build_appimage.sh
release:
fyne package --os linux --release --tags migrated_fynedo
appimage: release build-appimage
loc:
gocloc ./internal --by-file --include-lang=Go --not-match="\.sql\.go" --not-match-d="eveicon" --not-match="_test\.go"
deploy-android: check-device build-android install-android
build-android:
fyne package -os android --release --tags migrated_fynedo
install-android:
adb install -r -d EVE_Buddy.apk
# check-device aborts when no Android device is connected
check-device:
@if ! adb devices | grep -q device$$; then\
echo "device not found";\
exit 1;\
fi
@echo device found
interfaces:
ifacemaker -f internal/eveimageservice/eveimageservice.go -i EveImageService -p app -s EveImageService > internal/app/eveimageservice.go
check_race:
GORACE="halt_on_error=1" go run -race --tags migrated_fynedo .
check_race_mobile:
GORACE="halt_on_error=1" go run -race --tags migrated_fynedo . --mobile --dev
build:
fyne build --tags migrated_fynedo
ratelimitdoc:
go run ./tools/genratelimit/ -f md > ratelimits.md ;
test:
go test -test.short ./... ;
deadcode:
deadcode -test ./...