Make .git/index a dependency of cartodb_version.sql

Ensures proper rebuild of version function on git pull/commit
This commit is contained in:
Sandro Santilli 2014-06-06 13:36:21 +02:00
parent f8180123eb
commit 1692e792a7

View File

@ -66,7 +66,7 @@ $(EXTENSION)--$(EXTVERSION)--$(EXTVERSION)next.sql: $(EXTENSION)--$(EXTVERSION).
$(EXTENSION).control: $(EXTENSION).control.in Makefile
$(SED) -e 's/@@VERSION@@/$(EXTVERSION)/' $< > $@
cartodb_version.sql: cartodb_version.sql.in Makefile
cartodb_version.sql: cartodb_version.sql.in Makefile .git/index
$(SED) -e 's/@@VERSION@@/$(EXTVERSION) $(REV)/' $< > $@
legacy_regress: $(REGRESS_OLD) Makefile