Revision d5a2a550 Makefile.am

b/Makefile.am
28 28
DOCPP = $(top_srcdir)/autotools/docpp
29 29
REPLACE_VARS_SED = autotools/replace_vars.sed
30 30
CONVERT_CONSTANTS = $(top_srcdir)/autotools/convert-constants
31
BUILD_RPC = $(top_srcdir)/autotools/build-rpc
31 32

  
32 33
# Note: these are automake-specific variables, and must be named after
33 34
# the directory + 'dir' suffix
......
144 145
	doc/examples/ganeti.cron \
145 146
	doc/examples/gnt-config-backup \
146 147
	doc/examples/hooks/ipsec \
148
	lib/_generated_rpc.py \
147 149
	$(man_MANS) \
148 150
	$(manhtml) \
149 151
	tools/kvm-ifup \
......
164 166

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

  
169 172
nodist_pkgpython_PYTHON = \
170 173
	$(BUILT_PYTHON_SOURCES)
171 174

  
172 175
noinst_PYTHON = \
173 176
	lib/build/__init__.py \
177
	lib/build/rpc_definitions.py \
174 178
	lib/build/sphinx_ext.py
175 179

  
176 180
pkgpython_PYTHON = \
......
555 559
	epydoc.conf.in \
556 560
	pylintrc \
557 561
	autotools/build-bash-completion \
562
	autotools/build-rpc \
558 563
	autotools/check-python-code \
559 564
	autotools/check-imports \
560 565
	autotools/check-man \
......
1015 1020
	  echo "VCS_VERSION = '$$VCSVER'"; \
1016 1021
	} > $@
1017 1022

  
1023
lib/_generated_rpc.py: lib/build/rpc_definitions.py $(BUILD_RPC) | lib/.dir
1024
	PYTHONPATH=. $(RUN_IN_TEMPDIR) $(CURDIR)/$(BUILD_RPC) $< > $@
1025

  
1018 1026
$(REPLACE_VARS_SED): Makefile
1019 1027
	set -e; \
1020 1028
	{ echo 's#@PREFIX@#$(prefix)#g'; \

Also available in: Unified diff