Commit 43ed847c authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Use stamp not to recompile and relink version.c when it doesn't have to (closes #554)

parent 136d8730
......@@ -7,9 +7,9 @@ SUBDIRS =
EXTRA_DIST = extras/COPYING misc/modules_builtin.h.in
BUILT_SOURCES = $(DISTCLEANFILES) $(CLEANFILES)
BUILT_SOURCES = $(DISTCLEANFILES) $(CLEANFILES) misc/version.c
DISTCLEANFILES = stamp-api
CLEANFILES = misc/modules_builtin.h misc/version.c
CLEANFILES = misc/modules_builtin.h stamp-version
MOSTLYCLEANFILES = $(DATA_noinst_libvlc) stamp-builtins
TOOLBOX = srcdir=$(top_srcdir) builddir=$(top_builddir) $(top_srcdir)/toolbox
......@@ -107,9 +107,15 @@ misc/modules_builtin.h: Makefile misc/modules_builtin.h.in ../vlc-config
misc/modules.c: misc/modules_builtin.h
misc/version.c: FORCE
misc/version.c:
$(TOOLBOX) --update-version
stamp-version: misc/version.c
$(TOOLBOX) --update-version
touch $@
.PHONY: stamp-version
###############################################################################
# Building builtin modules
###############################################################################
......@@ -365,7 +371,3 @@ stamp-api: Makefile.in $(HEADERS_include) ../vlc-api.pl
top_srcdir="$(top_srcdir)" perl $(top_srcdir)/vlc-api.pl
touch stamp-api
###############################################################################
# Force rule
###############################################################################
FORCE:
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment