Skip to content

Commit

Permalink
Makefile tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
tve committed Jun 4, 2015
1 parent c5eb65a commit 8f4e4f6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,12 @@ LED_SERIAL_PIN ?= 2

# This queries git to produce a version string like "esp-link v0.9.0 2015-06-01 34bc76"
# If you don't have a proper git checkout or are on windows, then simply swap for the constant
VERSION := "esp-link custom version"
#VERSION ?= "esp-link custom version"
DATE := $(shell date '+%F %T')
BRANCH := $(shell git rev-parse --abbrev-ref HEAD)
BRANCH := $(shell git describe --tags)
SHA := $(shell if git diff --quiet HEAD; then git rev-parse --short HEAD | cut -d"/" -f 3; \
else echo "development"; fi)
VERSION := esp-link - $(BRANCH) - $(DATE) - $(SHA)
VERSION ?="esp-link $(BRANCH) - $(DATE) - \#$(SHA)"

# --------------- esphttpd config options ---------------

Expand Down

0 comments on commit 8f4e4f6

Please sign in to comment.