NULL =
bin_SCRIPTS =
CLEANFILES =
EXTRA_DIST =

codegendir = $(libdir)/gdbus-2.0/codegen
codegen_PYTHON =						\
	__init__.py						\
	codegen.py						\
	codegen_main.py						\
	codegen_docbook.py					\
	config.py						\
	dbustypes.py						\
	parser.py						\
	utils.py						\
	$(NULL)

CLEANFILES += config.pyc

bin_SCRIPTS += gdbus-codegen
CLEANFILES += gdbus-codegen
EXTRA_DIST += gdbus-codegen.in

gdbus-codegen: gdbus-codegen.in Makefile
	$(AM_V_GEN) sed -e 's,@libdir\@,$(libdir),' $< > $@.tmp && mv $@.tmp $@
	@chmod a+x $@

clean-local:
	rm -f *~