From: Michael Hanselmann Date: Wed, 30 Apr 2008 12:55:00 +0000 (+0000) Subject: Move target creating symlinks in lib/ into Makefile.libcommon X-Git-Tag: v1.2.4~83 X-Git-Url: https://code.grnet.gr/git/ganeti-local/commitdiff_plain/f089cd3b1c9f997eea21623762cfc14739a5b2ad?ds=sidebyside Move target creating symlinks in lib/ into Makefile.libcommon Reviewed-by: iustinp --- diff --git a/lib/Makefile.am b/lib/Makefile.am index fe6e7c4..b387c21 100644 --- a/lib/Makefile.am +++ b/lib/Makefile.am @@ -8,6 +8,7 @@ pkgpython_PYTHON = __init__.py backend.py cli.py cmdlib.py config.py \ nobase_pkgpython_PYTHON = rapi/__init__.py \ rapi/resources.py rapi/RESTHTTPServer.py +python_files = $(pkgpython_PYTHON) all-local: _autoconf.py @@ -25,7 +26,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 diff --git a/lib/Makefile.libcommon b/lib/Makefile.libcommon new file mode 100644 index 0000000..73b48f3 --- /dev/null +++ b/lib/Makefile.libcommon @@ -0,0 +1,8 @@ +# 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