init: check if build tags exist before running go build

Resolves issue #415
This commit is contained in:
Trek Hopton 2023-10-03 07:52:52 +00:00
parent 4587f31c42
commit 14482e8945
1 changed files with 6 additions and 1 deletions

View File

@ -28,7 +28,12 @@ endif
rebuild:
chmod +x run.sh
cd ../cmd/$(BIN_NAME); go build -tags $(BUILD_TAG)
cd ../cmd/$(BIN_NAME); \
if [ -z "$(BUILD_TAG)" ]; then \
go build; \
else \
go build -tags $(BUILD_TAG); \
fi
install: as_root make_dirs soft_copy_files rebuild syncreboot
@echo "Install complete"