mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 03:16:17 +01:00
08cfcdc81a
Don't assume /usr/bin/python is python 2.x, on newer Ubuntu versions it's actually python 3.x.
31 lines
601 B
Makefile
31 lines
601 B
Makefile
|
|
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 $(codegen_PYTHON)
|
|
$(AM_V_GEN) sed -e 's,@libdir\@,$(libdir),' -e 's,@PYTHON\@,$(PYTHON),' $< > $@.tmp && mv $@.tmp $@
|
|
@chmod a+x $@
|
|
|
|
clean-local:
|
|
rm -f *~
|