Skip to content

Commit

Permalink
small (mainly asthetic) patch to Makefile to not show empty commit ve…
Browse files Browse the repository at this point in the history
…rsion info
  • Loading branch information
IdlePhysicist committed Jun 5, 2020
1 parent 5845180 commit 2ad76db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ CGO=1
SRC=cmd
BUILD=build
version?="0.0.0"
commit=`git rev-list -1 HEAD | head -c 8`
commit=`if [ -d ./.git ]; then git rev-list -1 HEAD | head -c 8; else echo "release build"; fi`
date=`date "+%Y-%m-%d"`
package=main
ldflags="-X $(package).commit=$(commit) -X $(package).version=$(version) -X $(package).date=$(date)"
Expand Down

0 comments on commit 2ad76db

Please sign in to comment.