-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
43 lines (35 loc) · 1.14 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
#------------------------------------------------
#
# setup environment
#
#------------------------------------------------
export GOPATH:=$(realpath $(shell pwd)/../../unity/gocode)
TOP:=$(realpath $(shell pwd)/$(dir $(firstword $(MAKEFILE_LIST))))
PACKAGE:=$(subst $(GOPATH)/src/,,$(TOP))
#------------------------------------------------
#
# standard rules
#
#------------------------------------------------
# The first target defined is the default if no target is
# specified on the command line. Make sure this doesn't
# take too long to run, so that people will run it on every
# build.
.PHONY: fast
fast: build coverage-short lint-fast
# Also define the "full fat" rule that does everything
.PHONY: all build
all: build coverage lint-full
-include .go-make/make/batteries.mk
.go-make/make/%:
git clone https://github.com/go-make/make.git $(dir $@)
rm -rf $(dir $@)/.git
#------------------------------------------------
#
# now to actually build stuff...
#
#------------------------------------------------
# The 'build' target is where you customise for your project.
# In this simple example, we'll just install
.PHONY: build
build: install