Skip to content

Commit

Permalink
BUILD_ID: Fix dirt check when srcdir != builddir.
Browse files Browse the repository at this point in the history
I also tried git --work-tree=$(top_srcdir) but did not get it to work.
  • Loading branch information
KalleOlaviNiemitalo authored and Kalle Olavi Niemitalo committed Mar 1, 2008
1 parent 747b32b commit b0c5da3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ SUBDIRS = \
# Get the GIT HEAD ID if possible
ifdef GIT
GITDESC = $(shell $(GIT) --git-dir=$(top_srcdir)/.git rev-parse HEAD 2>/dev/null)
WTDIRTY = $(shell $(GIT) --git-dir=$(top_srcdir)/.git diff-index HEAD 2>/dev/null)
WTDIRTY = $(shell cd "$(top_srcdir)" && $(GIT) diff-index HEAD 2>/dev/null)
BUILD_ID = $(subst elinks-,,$(GITDESC))$(if $(WTDIRTY),-dirty)
endif
INCLUDES += -DBUILD_ID="\"$(BUILD_ID)\""
Expand Down

0 comments on commit b0c5da3

Please sign in to comment.