- changed status to resolved
makefile fails for rv when no build tags are used
Issue #415
resolved
The makefile in av/init fails when the rule make install_hard
is used without specifying build tags.
This is the output:
Created symlink /etc/systemd/system/multi-user.target.wants/rv.service → /etc/systemd/system/rv.service.
chmod +x run.sh
cd ../cmd/rv; go build -tags
flag needs an argument: -tags
usage: go build [-o output] [build flags] [packages]
Run 'go help build' for details.
make: *** [Makefile:31: rebuild] Error 2
This happens because there are no tags provided yet “-tags” is still added to the end of the build command.
We need a condition to check if build tags are given.
Comments (1)
-
reporter - Log in to comment
init: check if build tags exist before running go build
Resolves issue
#415→ <<cset 14482e89457c>>