Revision 96a7481d

b/Makefile.am
156 156
# BUILT_SOURCES should only be used as a dependency on phony targets. Otherwise
157 157
# it'll cause the target to rebuild every time.
158 158
BUILT_SOURCES = \
159
  $(built_base_sources) \
160
	$(BUILT_PYTHON_SOURCES) \
161
	$(PYTHON_BOOTSTRAP)
162

  
163
built_base_sources = \
159 164
	ganeti \
160 165
	stamp-srclinks \
161
	$(all_dirfiles) \
162
	$(PYTHON_BOOTSTRAP) \
163
	$(BUILT_PYTHON_SOURCES)
166
	$(all_dirfiles)
164 167

  
165
BUILT_PYTHON_SOURCES = \
168
built_python_base_sources = \
166 169
	lib/_autoconf.py \
167
	lib/_vcsversion.py \
170
	lib/_vcsversion.py
171

  
172
BUILT_PYTHON_SOURCES = \
173
	$(built_python_base_sources) \
168 174
	lib/_generated_rpc.py
169 175

  
176
# Generating the RPC wrappers depends on many things, so make sure it's built at
177
# the end of the built sources
178
lib/_generated_rpc.py: | $(built_base_sources) $(built_python_base_sources)
179

  
170 180
# these are all built from the underlying %.in sources
171 181
BUILT_EXAMPLES = \
172 182
	doc/examples/ganeti-kvm-poweroff.initd \
......
1029 1039
	  echo "VCS_VERSION = '$$VCSVER'"; \
1030 1040
	} > $@
1031 1041

  
1032
lib/_generated_rpc.py: lib/rpc_defs.py $(BUILD_RPC) | lib/.dir
1033
	PYTHONPATH=. $(RUN_IN_TEMPDIR) $(CURDIR)/$(BUILD_RPC) $< > $@
1042
lib/_generated_rpc.py: lib/rpc_defs.py $(BUILD_RPC)
1043
	PYTHONPATH=. $(RUN_IN_TEMPDIR) $(CURDIR)/$(BUILD_RPC) lib/rpc_defs.py > $@
1034 1044

  
1035 1045
$(REPLACE_VARS_SED): Makefile
1036 1046
	set -e; \

Also available in: Unified diff