sugar-toolkit-gtk3/shell/extensions/Makefile.am

73 lines
1.8 KiB
Makefile
Raw Normal View History

2007-04-15 12:16:06 +02:00
sugardir = $(pkgdatadir)/shell/extensions
sugar_PYTHON = \
__init__.py
2007-04-15 12:16:06 +02:00
pkgpyexecdir = $(pkgdatadir)/shell/extensions
2007-04-15 12:16:06 +02:00
pkgpyexec_LTLIBRARIES = _extensions.la
2007-04-15 12:16:06 +02:00
_extensions_la_LDFLAGS = -module -avoid-version
2007-04-16 18:07:52 +02:00
_extensions_la_CFLAGS = \
$(WARN_CFLAGS) \
$(PYTHON_INCLUDES) \
$(PYGTK_CFLAGS) \
$(SHELL_CFLAGS)
2007-04-15 12:16:06 +02:00
_extensions_la_LIBADD = \
$(SHELL_LIBS) \
$(PYCAIRO_LIBS) \
-lgstinterfaces-0.10 \
-lgstaudio-0.10
2007-04-15 12:16:06 +02:00
_extensions_la_SOURCES = \
$(BUILT_SOURCES) \
eggaccelerators.h \
eggaccelerators.c \
sugar-audio-manager.c \
sugar-audio-manager.h \
sugar-key-grabber.h \
sugar-key-grabber.c \
2007-04-15 12:16:06 +02:00
_extensionsmodule.c
BUILT_SOURCES = \
2007-04-15 12:16:06 +02:00
_extensions.c \
sugar-shell-marshal.c \
sugar-shell-marshal.h
stamp_files = \
stamp-sugar-shell-marshal.c \
stamp-sugar-shell-marshal.h
sugar-shell-marshal.c: stamp-sugar-shell-marshal.c
@true
stamp-sugar-shell-marshal.c: sugar-shell-marshal.list
$(GLIB_GENMARSHAL) --prefix=sugar_shell_marshal \
$(srcdir)/sugar-shell-marshal.list --header --body > \
sugar-shell-marshal.c && echo timestamp > $(@F)
sugar-shell-marshal.h: stamp-sugar-shell-marshal.h
@true
stamp-sugar-shell-marshal.h: sugar-shell-marshal.list
$(GLIB_GENMARSHAL) --prefix=sugar_shell_marshal \
$(srcdir)/sugar-shell-marshal.list --header > \
sugar-shell-marshal.h && echo timestamp > $(@F)
CLEANFILES = $(stamp_files) $(BUILT_SOURCES)
DISTCLEANFILES = $(stamp_files) $(BUILT_SOURCES)
MAINTAINERCLEANFILES = $(stamp_files) $(BUILT_SOURCES)
2007-04-15 12:16:06 +02:00
EXTRA_DIST = sugar-marshal.list _extensions.override _extensions.defs
2007-04-15 12:16:06 +02:00
extensions.c: _extensions.defs _extensions.override
.defs.c:
(cd $(srcdir)\
&& $(PYGTK_CODEGEN) \
--register $(PYGTK_DEFSDIR)/gdk-types.defs \
--register $(PYGTK_DEFSDIR)/gtk-types.defs \
--override $*.override \
--prefix py$* $*.defs) > gen-$*.c \
&& cp gen-$*.c $*.c \
&& rm -f gen-$*.c