Commit dd1dfd9a authored by Michael Hanselmann's avatar Michael Hanselmann

Makefile.am: Use dependencies to create symlinks only if necessary

Signed-off-by: default avatarMichael Hanselmann <hansmi@google.com>
Reviewed-by: default avatarGuido Trotter <ultrotter@google.com>
parent dbefcc7e
......@@ -23,6 +23,7 @@
/configure
/ganeti
/stamp-directories
/stamp-srclinks
/*.patch
/*.tar.bz2
/*.tar.gz
......
......@@ -68,11 +68,12 @@ CLEANFILES = \
qa/*.py[co] \
test/*.py[co] \
stamp-directories \
stamp-srclinks \
$(nodist_pkgpython_PYTHON)
BUILT_SOURCES = \
ganeti \
srclinks \
stamp-srclinks \
stamp-directories \
lib/_autoconf.py
......@@ -410,13 +411,14 @@ $(REPLACE_VARS_SED): Makefile
# We need to create symlinks because "make distcheck" will not install Python
# files when building.
srclinks: stamp-directories
stamp-srclinks: Makefile stamp-directories
set -e; \
for i in $(srclink_files); do \
if test ! -f $$i -a -f $(abs_top_srcdir)/$$i; then \
$(LN_S) $(abs_top_srcdir)/$$i $$i; \
fi; \
done
touch $@
.PHONY: ganeti
ganeti:
......
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