Skip to content
Snippets Groups Projects
Commit dc7d2c49 authored by Michael Hanselmann's avatar Michael Hanselmann
Browse files

Makefile: Use BUILT_SOURCES


These are always built before anything else.

Signed-off-by: default avatarMichael Hanselmann <hansmi@google.com>
Reviewed-by: default avatarIustin Pop <iustin@google.com>
parent 434c34a5
No related branches found
No related tags found
No related merge requests found
...@@ -64,6 +64,11 @@ CLEANFILES = \ ...@@ -64,6 +64,11 @@ CLEANFILES = \
stamp-directories \ stamp-directories \
$(nodist_pkgpython_PYTHON) $(nodist_pkgpython_PYTHON)
BUILT_SOURCES = \
ganeti \
srclinks \
lib/_autoconf.py
nodist_pkgpython_PYTHON = \ nodist_pkgpython_PYTHON = \
lib/_autoconf.py lib/_autoconf.py
...@@ -257,7 +262,7 @@ TESTS = $(dist_TESTS) $(nodist_TESTS) ...@@ -257,7 +262,7 @@ TESTS = $(dist_TESTS) $(nodist_TESTS)
TESTS_ENVIRONMENT = PYTHONPATH=.:$(top_builddir) $(PYTHON) TESTS_ENVIRONMENT = PYTHONPATH=.:$(top_builddir) $(PYTHON)
all-local: stamp-directories lib/_autoconf.py devel/upload \ all-local: stamp-directories devel/upload \
doc/examples/bash_completion \ doc/examples/bash_completion \
doc/examples/ganeti.initd doc/examples/ganeti.cron doc/examples/ganeti.initd doc/examples/ganeti.cron
...@@ -269,7 +274,7 @@ doc/examples/%: doc/examples/%.in stamp-directories \ ...@@ -269,7 +274,7 @@ doc/examples/%: doc/examples/%.in stamp-directories \
$(REPLACE_VARS_SED) $(REPLACE_VARS_SED)
sed -f $(REPLACE_VARS_SED) < $< > $@ sed -f $(REPLACE_VARS_SED) < $< > $@
doc/examples/bash_completion: $(BUILD_BASH_COMPLETION) lib/_autoconf.py \ doc/examples/bash_completion: $(BUILD_BASH_COMPLETION) \
lib/cli.py $(gnt_scripts) tools/burnin lib/cli.py $(gnt_scripts) tools/burnin
TMPDIR=`mktemp -d ./buildtmpXXXXXX` && \ TMPDIR=`mktemp -d ./buildtmpXXXXXX` && \
cp -r scripts lib tools $$TMPDIR && \ cp -r scripts lib tools $$TMPDIR && \
...@@ -302,10 +307,6 @@ man/%.8: man/%.8.in stamp-directories $(REPLACE_VARS_SED) ...@@ -302,10 +307,6 @@ man/%.8: man/%.8.in stamp-directories $(REPLACE_VARS_SED)
man/%.html: man/%.html.in stamp-directories $(REPLACE_VARS_SED) man/%.html: man/%.html.in stamp-directories $(REPLACE_VARS_SED)
sed -f $(REPLACE_VARS_SED) < $< > $@ sed -f $(REPLACE_VARS_SED) < $< > $@
man/footer.sgml $(TESTS): srclinks
$(TESTS): ganeti lib/_autoconf.py
lib/_autoconf.py: Makefile stamp-directories lib/_autoconf.py: Makefile stamp-directories
set -e; \ set -e; \
{ echo '# This file is automatically generated, do not edit!'; \ { echo '# This file is automatically generated, do not edit!'; \
...@@ -357,7 +358,6 @@ $(REPLACE_VARS_SED): Makefile stamp-directories ...@@ -357,7 +358,6 @@ $(REPLACE_VARS_SED): Makefile stamp-directories
# We need to create symlinks because "make distcheck" will not install Python # We need to create symlinks because "make distcheck" will not install Python
# files when building. # files when building.
#.PHONY: srclinks
srclinks: stamp-directories srclinks: stamp-directories
set -e; \ set -e; \
for i in man/footer.sgml $(pkgpython_PYTHON) $(hypervisor_PYTHON) \ for i in man/footer.sgml $(pkgpython_PYTHON) $(hypervisor_PYTHON) \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment