Selaa lähdekoodia

makefile: fix repo_state

Andrei Pelinescu-Onciul 15 vuotta sitten
vanhempi
commit
420eb49f12
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 2 2
      Makefile

+ 2 - 2
Makefile

@@ -564,8 +564,8 @@ repo_ver=$(shell  RV=`git rev-parse --verify --short=6 HEAD 2>/dev/null`;\
 								grep -v Makefile`" &&\
 								grep -v Makefile`" &&\
 						RV="$$RV"-dirty; echo "$$RV")
 						RV="$$RV"-dirty; echo "$$RV")
 repo_hash=$(subst -dirty,,$(repo_ver))
 repo_hash=$(subst -dirty,,$(repo_ver))
-repo_state=$(patsubst %-dirty,dirty,$(repo_ver))
-autover_h_dep=.git $(filter-out $(auto_gen), $(sources)) cfg.y cfg.lex
+repo_state=$(subst %-dirty,dirty,$(findstring -dirty,$(repo_ver)))
+autover_h_dep=.git $(filter-out $(auto_gen), $(sources)) cfg.y cfg.lex Makefile
 else
 else
 # else if .git/ does not exist
 # else if .git/ does not exist
 repo_ver=
 repo_ver=