Revision 580b1fdd Makefile.am

b/Makefile.am
242 242

  
243 243
built_python_base_sources = \
244 244
	lib/_autoconf.py \
245
	lib/_vcsversion.py
245
	lib/_vcsversion.py \
246
	lib/opcodes.py
246 247

  
247 248
BUILT_PYTHON_SOURCES = \
248 249
	$(built_python_base_sources) \
......
291 292
	lib/mcpu.py \
292 293
	lib/netutils.py \
293 294
	lib/objects.py \
294
	lib/opcodes.py \
295
	lib/opcodes_base.py \
295 296
	lib/outils.py \
296 297
	lib/ovf.py \
297 298
	lib/pathutils.py \
......
506 507
	src/ganeti-mond \
507 508
	src/hconfd \
508 509
	src/hluxid \
510
	src/hs2py \
509 511
	src/rpc-test
510 512

  
511 513
# All Haskell non-test programs to be compiled but not automatically installed
......
603 605
	src/Ganeti/Hypervisor/Xen/Types.hs \
604 606
	src/Ganeti/Hash.hs \
605 607
	src/Ganeti/Hs2Py/GenOpCodes.hs \
608
	src/Ganeti/Hs2Py/OpDoc.hs \
606 609
	src/Ganeti/JQueue.hs \
607 610
	src/Ganeti/JSON.hs \
608 611
	src/Ganeti/Jobs.hs \
......
695 698
	src/Ganeti/Version.hs
696 699
HS_BUILT_SRCS_IN = \
697 700
	$(patsubst %,%.in,$(filter-out src/Ganeti/Curl/Internal.hs,$(HS_BUILT_SRCS))) \
698
	src/Ganeti/Curl/Internal.hsc
701
	src/Ganeti/Curl/Internal.hsc \
702
	lib/opcodes.py.in_after \
703
	lib/opcodes.py.in_before
699 704

  
700 705
HS_LIBTESTBUILT_SRCS = $(HS_LIBTEST_SRCS) $(HS_BUILT_SRCS)
701 706

  
......
712 717
# it changes
713 718
doc/html/index.html doc/man-html/index.html: $(docinput) doc/conf.py \
714 719
	configure.ac $(RUN_IN_TEMPDIR) lib/build/sphinx_ext.py \
715
	lib/build/shell_example_lexer.py lib/opcodes.py lib/ht.py \
720
	lib/build/shell_example_lexer.py lib/ht.py \
716 721
	doc/css/style.css lib/rapi/connector.py lib/rapi/rlib2.py \
717 722
	autotools/sphinx-wrapper | $(BUILT_PYTHON_SOURCES)
718 723
	@test -n "$(SPHINX)" || \
......
1666 1671
	  echo "VCS_VERSION = '$$VCSVER'"; \
1667 1672
	} > $@
1668 1673

  
1674
lib/opcodes.py: Makefile src/hs2py src/Ganeti/Constants.hs \
1675
		lib/opcodes.py.in_before lib/opcodes.py.in_after \
1676
		| stamp-directories
1677
	cat $(abs_top_srcdir)/lib/opcodes.py.in_before > $@
1678
	src/hs2py >> $@
1679
	cat $(abs_top_srcdir)/lib/opcodes.py.in_after >> $@
1680

  
1669 1681
lib/_generated_rpc.py: lib/rpc_defs.py $(BUILD_RPC)
1670 1682
	PYTHONPATH=. $(RUN_IN_TEMPDIR) $(CURDIR)/$(BUILD_RPC) lib/rpc_defs.py > $@
1671 1683

  

Also available in: Unified diff