mirror of https://bitbucket.org/ausocean/av.git
init: check if build tags exist before running go build
Resolves issue #415
This commit is contained in:
parent
4587f31c42
commit
14482e8945
|
@ -28,7 +28,12 @@ endif
|
||||||
|
|
||||||
rebuild:
|
rebuild:
|
||||||
chmod +x run.sh
|
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
|
install: as_root make_dirs soft_copy_files rebuild syncreboot
|
||||||
@echo "Install complete"
|
@echo "Install complete"
|
||||||
|
|
Loading…
Reference in New Issue