forked from BWhitten/packet_forwarder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
48 lines (32 loc) · 859 Bytes
/
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
# name of the executable
NAME = packet-forwarder
# location of executable
RELEASE_DIR = release
# Version information
GIT_COMMIT = $(or $(CI_BUILD_REF), `git rev-parse HEAD 2>/dev/null`)
GIT_TAG = $(shell git describe --abbrev=0 --tags 2>/dev/null)
ifeq ($(GIT_BRANCH), $(GIT_TAG))
PKTFWD_VERSION = $(GIT_TAG)
else
PKTFWD_VERSION = $(GIT_TAG)-dev
endif
# HAL choice
HAL_CHOICE ?= halv1
.PHONY: dev test quality quality-staged
build: hal.build go.build
dev: go.dev
deps: go.deps hal.deps
dev-deps: go.dev-deps
test: go.test
quality: go.quality
quality-staged: go.quality-staged
clean: go.clean hal.clean
clean-deps: go.clean-deps hal.clean-deps
install: go.install
include ./.make/*.make
include ./.make/go/*.make
ifeq ($(HAL_CHOICE),halv1)
include ./.make/halv1/*.make
else ifeq ($(HAL_CHOICE),dummy)
include ./.make/dummyhal/*.make
endif