diff options
author | Måns Rullgård | 2010-03-10 02:56:56 +0000 |
---|---|---|
committer | Måns Rullgård | 2010-03-10 02:56:56 +0000 |
commit | 6a53fffd77b3b89d33159126659c07529e391e5b (patch) | |
tree | 5d8169c62aeb9cc02754b66e4e3df2399edec103 /common.mak | |
parent | 93bff1de770e95c79bcf2ec794d05ef6b64ec7af (diff) |
Improve version.h generation
Force version.sh to run whenever the version might have changed,
regardless of what is being built. This is done by attaching the
dependencies to a dummy file (.version) which is included from the
makefile. As make will always attempt to rebuild any included files
before considering other rules, this ensures that the real version.h
is (re-)created before it is required by any source file.
Originally committed as revision 22420 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'common.mak')
-rw-r--r-- | common.mak | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/common.mak b/common.mak index 36788e5cfe..e868a2849c 100644 --- a/common.mak +++ b/common.mak @@ -54,14 +54,6 @@ CFLAGS += $(ECFLAGS) %.c %.h: MSG = GEN -SVN_ENTRIES = $(SRC_PATH_BARE)/.svn/entries -ifeq ($(wildcard $(SVN_ENTRIES)),$(SVN_ENTRIES)) -$(BUILD_ROOT_REL)/version.h: $(SVN_ENTRIES) -endif - -$(BUILD_ROOT_REL)/version.h: $(SRC_PATH_BARE)/version.sh config.mak - $(M)$< $(SRC_PATH) $@ $(EXTRA_VERSION) - install: install-libs install-headers install-libs: install-libs-yes |