-
Notifications
You must be signed in to change notification settings - Fork 14
/
Makefile
45 lines (35 loc) · 984 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
GO111MODULE = on
.ONESHELL:
SHELL = /bin/bash
all: configure build #default make target
configure:
echo "" # make configure unimplemented. Unified deployment API between all software components.
build:
cd cmd/rclgo-gen && go build
install:
cd cmd/rclgo-gen && go install
.PHONY: test
test:
go test -count=1 ./...
.PHONY: test-verbose
test-verbose:
go test -v -count=1 ./...
generate:
dest_path=internal/msgs
rm -rf "$$dest_path/"*
go run ./cmd/rclgo-gen generate \
--root-path /usr \
--root-path /opt/ros/${ROS_DISTRO} \
--dest-path "$$dest_path" \
--message-module-prefix "github.com/tiiuae/rclgo/$$dest_path" \
--license-header-path ./license-header.txt \
--include-go-package-deps ./... \
--cgo-flags-path "" \
|| exit 1
rm "$$dest_path/msgs.gen.go" || exit 1
go run ./cmd/rclgo-gen generate-rclgo \
--root-path /usr \
--root-path /opt/ros/${ROS_DISTRO} \
--license-header-path ./license-header.txt
lint:
golangci-lint run ./...