init: add flag for rv build tags

This commit is contained in:
Trek H 2022-12-23 11:44:06 +10:30
parent f6e00342f7
commit 800d3d141a
1 changed files with 2 additions and 1 deletions

View File

@ -9,6 +9,7 @@ PATH := /usr/local/go/bin:$(PATH)
BIN_NAME := rv BIN_NAME := rv
BIN_DIR := /src/bitbucket.org/ausocean/av/cmd/$(BIN_NAME) BIN_DIR := /src/bitbucket.org/ausocean/av/cmd/$(BIN_NAME)
RUN_SCRIPT_DIR := /src/bitbucket.org/ausocean/av/init/run.sh RUN_SCRIPT_DIR := /src/bitbucket.org/ausocean/av/init/run.sh
BUILD_TAG := withcv
ifeq ($(MA),) ifeq ($(MA),)
MA := "00:E0:4C:00:00:01" MA := "00:E0:4C:00:00:01"
@ -25,7 +26,7 @@ endif
rebuild: rebuild:
chmod +x run.sh chmod +x run.sh
cd ../cmd/$(BIN_NAME); go build -tags withcv cd ../cmd/$(BIN_NAME); go build -tags $(BUILD_TAG)
install: as_root make_dirs soft_copy_files rebuild syncreboot install: as_root make_dirs soft_copy_files rebuild syncreboot
@echo "Install complete" @echo "Install complete"