make version.h depend on .svn/entries
[libav.git] / Makefile
index 1bf8ca3..50c3f2c 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -85,6 +85,11 @@ ffplay_g$(EXESUF): ffplay.o cmdutils.o .libs
        cp -p $< $@
        $(STRIP) $@
 
        cp -p $< $@
        $(STRIP) $@
 
+SVN_ENTRIES = $(SRC_PATH_BARE)/.svn/entries
+ifeq ($(wildcard $(SVN_ENTRIES)),$(SVN_ENTRIES))
+version.h: $(SVN_ENTRIES)
+endif
+
 version.h:
        $(SRC_PATH)/version.sh $(SRC_PATH)
 
 version.h:
        $(SRC_PATH)/version.sh $(SRC_PATH)