forked from GitJournal/GitJournal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
45 lines (33 loc) · 1.52 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
# SPDX-FileCopyrightText: 2019-2021 Vishesh Handa <[email protected]>
#
# SPDX-License-Identifier: AGPL-3.0-or-later
DIR := ${CURDIR}
export PATH := $(DIR)/.flutter/bin/:$(PATH)
protos:
protoc --dart_out=grpc:lib/analytics/generated -Ilib/analytics/ lib/analytics/analytics.proto
protoc --dart_out=grpc:lib/markdown/generated -Ilib/markdown/ lib/markdown/markdown.proto
protoc --dart_out=grpc:lib/generated -Iprotos protos/builders.proto
protoc --dart_out=grpc:lib/generated -Iprotos protos/core.proto
rm lib/analytics/generated/analytics.pbgrpc.dart
dart format lib/
reuse addheader --license 'AGPL-3.0-or-later' --copyright 'Vishesh Handa <[email protected]>' --year '2021' lib/analytics/generated/*
reuse addheader --license 'AGPL-3.0-or-later' --copyright 'Vishesh Handa <[email protected]>' --year '2021' lib/markdown/generated/*
reuse addheader --license 'AGPL-3.0-or-later' --copyright 'Vishesh Handa <[email protected]>' --year '2021' lib/generated/*
git checkout lib/generated/locale_keys.g.dart
lint:
flutter analyze
build_env:
flutter scripts/setup_env.dart gen
build_runner:
flutter packages pub run build_runner build --delete-conflicting-outputs
test:
flutter test
version:
./scripts/version.sh
bump_dart_git:
flutter packages upgrade dart_git
# https://stackoverflow.com/a/26339924/147435
.PHONY: list test protos
list:
@$(MAKE) -pRrq -f $(lastword $(MAKEFILE_LIST)) : 2>/dev/null | awk -v RS= -F: '/^# File/,/^# Finished Make data base/ {if ($$1 !~ "^[#.]") {print $$1}}' | sort | egrep -v -e '^[^[:alnum:]]' -e '^$@$$'
help: list