mirror of
https://github.com/cmur2/miflorad.git
synced 2024-12-22 02:54:24 +01:00
30 lines
646 B
Makefile
30 lines
646 B
Makefile
.POSIX:
|
|
|
|
MIFLORA_ADDR?=00:00:00:00:00:00
|
|
|
|
.PHONY: all
|
|
all: clean build test
|
|
|
|
.PHONY: run
|
|
run: clean build test
|
|
sudo cmd/munin-miflora/munin-miflora xyz $(MIFLORA_ADDR)
|
|
|
|
.PHONY: clean
|
|
clean:
|
|
rm -f cmd/munin-miflora/munin-miflora
|
|
rm -f cmd/munin-miflora/munin-miflora-gatt
|
|
|
|
.PHONY: build
|
|
build: cmd/munin-miflora/munin-miflora cmd/munin-miflora/munin-miflora-gatt
|
|
|
|
.PHONY: test
|
|
test: build
|
|
|
|
.PHONY: cmd/munin-miflora/munin-miflora
|
|
cmd/munin-miflora/munin-miflora:
|
|
cd cmd/munin-miflora && go build && cd ../..
|
|
|
|
.PHONY: cmd/munin-miflora/munin-miflora-gatt
|
|
cmd/munin-miflora/munin-miflora-gatt:
|
|
cd cmd/munin-miflora-gatt && go build && cd ../..
|