This repository has been archived by the owner on Oct 5, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
72 lines (47 loc) · 1.77 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
# This make file uses composition to keep things KISS and easy.
# In the boilerpalte make files dont do any includes, because you will create multi permutations of possibilities.
BOILERPLATE_FSPATH=./boilerplate
include $(BOILERPLATE_FSPATH)/help.mk
include $(BOILERPLATE_FSPATH)/os.mk
include $(BOILERPLATE_FSPATH)/gitr.mk
include $(BOILERPLATE_FSPATH)/tool.mk
include $(BOILERPLATE_FSPATH)/flu.mk
include $(BOILERPLATE_FSPATH)/go.mk
# remove the "v" prefix
VERSION ?= $(shell echo $(TAGGED_VERSION) | cut -c 2-)
override FLU_SAMPLE_NAME =client
override FLU_LIB_NAME =client
## Print all settings
this-print: ## print
$(MAKE) os-print
$(MAKE) gitr-print
$(MAKE) flu-print
$(MAKE) flu-gen-lang-print
$(MAKE) go-print
this-dep:
# LOCAL DEVS: go to root make file and call this yourself to get all the tools !!!!
# install tools
cd ./tool && $(MAKE) this-build
# Install our grpc tools
#$(MAKE) grpc-all
### CI
## Build for CI. Does Big Gen !
this-build: this-dep
# Does full gen and build (web)
cd ./maintemplate && $(MAKE) this-build
## Build Desk For CI. Does Big Gen !
this-flu-desk-build: this-dep
cd ./maintemplate && $(MAKE) flu-desk-build
### Developers
# NOTE: At dev time you only want to run long generators IF you know you need then.
# So here are the make targets to use as you see fit.
# Manaully do a "make this-dep" to get the golang tools yourself.
# Manaully do a "make flu-config" to set to beta channnel yourself.
# Manaully do a "make flu-gen-all" to gen all code yourself.
# Manually do a "make flu-gen-lang-all" to gen all languages yourself.
### For Local dev. Does NOT do big Gen !
this-flu-desk-run:
cd ./maintemplate && $(MAKE) flu-desk-run
### For Local dev. Does NOT do big Gen !
this-flu-web-run:
cd ./maintemplate && $(MAKE) flu-web-run