Commit 4febe836 authored by Michael Hanselmann's avatar Michael Hanselmann
Browse files

Move target creating symlinks in lib/ into Makefile.libcommon

Reviewed-by: iustinp
parent b2d72ffe
......@@ -5,6 +5,7 @@ pkgpython_PYTHON = __init__.py backend.py cli.py cmdlib.py config.py \
objects.py errors.py logger.py ssh.py utils.py rpc.py \
bdev.py hypervisor.py opcodes.py mcpu.py constants.py \
ssconf.py locking.py luxi.py jqueue.py serializer.py
python_files = $(pkgpython_PYTHON)
all-local: _autoconf.py
......@@ -28,7 +29,4 @@ _autoconf.py: Makefile
echo "IALLOCATOR_SEARCH_PATH = [$(IALLOCATOR_SEARCH_PATH)]"; \
} > $@
pre-check: all
for i in $(pkgpython_PYTHON); do \
if test ! -f $$i; then $(LN_S) $(srcdir)/$$i $$i; fi; \
done
include $(srcdir)/Makefile.libcommon
# We need to create symlinks because "make distcheck" will not install Python
# files for building.
pre-check: all
for i in $(python_files); do \
if test ! -f $$i; then \
$(LN_S) $(srcdir)/$$i $$i; \
fi; \
done
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