mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-27 07:56:14 +01:00
b9f2ea4235
This assumption breaks when, for instance: * Called as /bin/gdbus-codegen * Installed on Windows in a directory that is not `bin/` For such cases, we cannot make any assumptions about the directory structure, and must hard-code the datadir. https://bugzilla.gnome.org/show_bug.cgi?id=786785
29 lines
600 B
Makefile
29 lines
600 B
Makefile
include $(top_srcdir)/glib.mk
|
|
|
|
bin_SCRIPTS =
|
|
|
|
codegendir = $(datadir)/glib-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,@DATADIR\@,$(datadir),' -e 's,@PYTHON\@,$(PYTHON),' $< > $@.tmp && mv $@.tmp $@
|
|
@chmod a+x $@
|
|
|
|
clean-local:
|
|
rm -f *~
|