1
0
mirror of https://github.com/cmur2/miflorad.git synced 2024-12-22 02:54:24 +01:00
miflorad/Makefile

31 lines
714 B
Makefile
Raw Normal View History

2018-12-13 16:33:37 +01:00
.POSIX:
MIFLORA_ADDR?=00:00:00:00:00:00
2018-12-13 16:33:37 +01:00
.PHONY: all
all: clean build test
.PHONY: run
run: clean build test
sudo cmd/munin-miflora/munin-miflora xyz $(MIFLORA_ADDR)
2018-12-13 16:33:37 +01:00
.PHONY: clean
clean:
rm -f cmd/munin-miflora/munin-miflora
rm -f cmd/munin-miflora/munin-miflora-gatt
2018-12-13 16:33:37 +01:00
.PHONY: build
build: cmd/munin-miflora/munin-miflora cmd/munin-miflora/munin-miflora-gatt
2018-12-13 16:33:37 +01:00
.PHONY: test
test: build
2018-12-14 13:34:16 +01:00
cd common && go test -v -race && cd ..
2018-12-13 16:33:37 +01:00
.PHONY: cmd/munin-miflora/munin-miflora
2018-12-13 16:33:37 +01:00
cmd/munin-miflora/munin-miflora:
cd cmd/munin-miflora && CGO_ENABLED=0 go build && cd ../..
.PHONY: cmd/munin-miflora/munin-miflora-gatt
cmd/munin-miflora/munin-miflora-gatt:
cd cmd/munin-miflora-gatt && CGO_ENABLED=0 go build && cd ../..