Add a Makefile with a few targets. The default is 'build'. The build

target calls the new version-at-commit.sh script which will
automatically populate the version variable inside the Headscale binary.

Once we start tagging releases on the git tree, that will come in handy.

The Makefile also has a 'test' target (does nothing yet, no tests yet)
and a 'dev' target, which runs linters, tests, and finally builds.
This commit is contained in:
Ward Vandewege 2021-04-25 10:21:04 -04:00
parent 6fa84004b3
commit 6aedc1111b
4 changed files with 67 additions and 4 deletions

View file

@ -17,7 +17,7 @@ import (
"tailscale.com/tailcfg"
)
const version = "0.1"
var version = "dev"
var versionCmd = &cobra.Command{
Use: "version",