Browse code

makefile: fix repo_state

Andrei Pelinescu-Onciul authored on 13/07/2010 19:00:37
Showing 1 changed files
... ...
@@ -564,8 +564,8 @@ repo_ver=$(shell  RV=`git rev-parse --verify --short=6 HEAD 2>/dev/null`;\
564 564
 								grep -v Makefile`" &&\
565 565
 						RV="$$RV"-dirty; echo "$$RV")
566 566
 repo_hash=$(subst -dirty,,$(repo_ver))
567
-repo_state=$(patsubst %-dirty,dirty,$(repo_ver))
568
-autover_h_dep=.git $(filter-out $(auto_gen), $(sources)) cfg.y cfg.lex
567
+repo_state=$(subst %-dirty,dirty,$(findstring -dirty,$(repo_ver)))
568
+autover_h_dep=.git $(filter-out $(auto_gen), $(sources)) cfg.y cfg.lex Makefile
569 569
 else
570 570
 # else if .git/ does not exist
571 571
 repo_ver=