Merged in make-flags (pull request #491)

init: add flag for rv build tags in makefile
This commit is contained in:
Trek Hopton 2022-12-23 01:27:04 +00:00
commit 18a869abfa
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"