Revision 6a53fffd

View differences:

Makefile
85 85

  
86 86
ffplay.o ffplay.d: CFLAGS += $(SDL_CFLAGS)
87 87

  
88
cmdutils.o cmdutils.d: version.h
88
VERSION_SH  = $(SRC_PATH_BARE)/version.sh
89
SVN_ENTRIES = $(SRC_PATH_BARE)/.svn/entries
90

  
91
.version: $(wildcard $(SVN_ENTRIES)) $(VERSION_SH) config.mak
92
.version: M=@
93

  
94
version.h .version:
95
	$(M)$(VERSION_SH) $(SRC_PATH) $@ $(EXTRA_VERSION)
96
	$(Q)touch .version
97

  
98
# force version.sh to run whenever version might have changed
99
-include .version
89 100

  
90 101
alltools: $(TOOLS)
91 102

  
common.mak
54 54

  
55 55
%.c %.h: MSG = GEN
56 56

  
57
SVN_ENTRIES = $(SRC_PATH_BARE)/.svn/entries
58
ifeq ($(wildcard $(SVN_ENTRIES)),$(SVN_ENTRIES))
59
$(BUILD_ROOT_REL)/version.h: $(SVN_ENTRIES)
60
endif
61

  
62
$(BUILD_ROOT_REL)/version.h: $(SRC_PATH_BARE)/version.sh config.mak
63
	$(M)$< $(SRC_PATH) $@ $(EXTRA_VERSION)
64

  
65 57
install: install-libs install-headers
66 58
install-libs: install-libs-yes
67 59

  

Also available in: Unified diff