gitg/libgitg-ext/Makefile.am

128 lines
3.2 KiB
Text
Raw Normal View History

2012-04-14 11:46:39 +00:00
lib_LTLIBRARIES = libgitg-ext-1.0.la
2013-06-29 12:45:59 +00:00
AM_CPPFLAGS = \
2012-04-14 11:46:39 +00:00
-I$(top_srcdir) \
-I$(srcdir) \
$(LIBGITG_EXT_CFLAGS) \
$(WARN_CFLAGS) \
-DDATADIR=\""$(datadir)"\" \
-DLIBDIR=\""$(libdir)"\"
COMMON_VALA_FLAGS = \
2012-07-12 18:52:07 +00:00
--pkg Ggit-1.0 \
--pkg libgitg-1.0 \
--pkg gio-2.0 \
--pkg gtk+-3.0 \
2013-06-23 12:40:04 +00:00
--pkg libsoup-2.4 \
--pkg webkit2gtk-3.0 \
2013-05-26 06:28:34 +00:00
--pkg gee-0.8 \
2012-07-12 18:52:07 +00:00
--basedir $(top_srcdir) \
2013-06-23 12:40:04 +00:00
--vapidir $(top_srcdir)/vapi \
2012-07-12 18:52:07 +00:00
--vapidir $(top_builddir)/libgitg
2012-04-14 11:46:39 +00:00
AM_VALAFLAGS = \
$(COMMON_VALA_FLAGS) \
--gir GitgExt-1.0.gir \
--girdir $(top_builddir)/libgitg \
--includedir libgitg-ext \
--header libgitg-ext.h \
--library libgitg-ext-1.0 \
$(GITG_VALAFLAGS)
2012-04-14 11:46:39 +00:00
libgitg_ext_1_0_la_LDFLAGS = \
-export-dynamic -no-undefined -export-symbols-regex "^[^_].*"
libgitg_ext_1_0_la_LIBADD = $(LIBGITG_EXT_LIBS)
VALA_FILES = \
2012-07-12 18:52:07 +00:00
gitg-ext-assembly-info.vala \
2012-04-14 11:46:39 +00:00
gitg-ext-application.vala \
gitg-ext-ui-element.vala \
2013-07-01 08:32:47 +00:00
gitg-ext-activity.vala \
2012-04-14 11:46:39 +00:00
gitg-ext-message-id.vala \
gitg-ext-message.vala \
gitg-ext-message-bus.vala \
2013-07-01 07:24:42 +00:00
gitg-ext-history.vala \
gitg-ext-history-panel.vala \
gitg-ext-command-line.vala \
gitg-ext-preferences.vala \
gitg-ext-ui.vala
2012-04-14 11:46:39 +00:00
libgitg_ext_1_0_la_SOURCES = \
$(VALA_FILES) \
gitg-ext-resources.c
headerdir = $(prefix)/include/libgitg-ext-1.0/libgitg-ext
header_DATA = libgitg-ext.h
2012-04-14 11:46:39 +00:00
2012-07-12 18:52:07 +00:00
vapidir = $(prefix)/share/vala/vapi
vapi_DATA = libgitg-ext-1.0.vapi
2012-04-14 11:46:39 +00:00
GitgExt-1.0.gir: libgitg-ext-1.0.la
libgitg-ext.h: libgitg-ext-1.0.la
2012-04-14 11:46:39 +00:00
# Ignore all warnings for vala code...
libgitg_ext_1_0_la_CFLAGS = \
-w
if ENABLE_DOCS
docs: $(VALA_FILES)
$(VALADOC) --directory $(top_builddir)/docs --package-name gitgext $(COMMON_VALA_FLAGS) $(VALA_FILES)
else
docs:
endif
2012-04-14 11:46:39 +00:00
girdir = $(INTROSPECTION_GIRDIR)
gir_DATA = GitgExt-1.0.gir
typelibdir = $(INTROSPECTION_TYPELIBDIR)
typelib_DATA = GitgExt-1.0.typelib
%.typelib: %.gir
$(INTROSPECTION_COMPILER) $(INTROSPECTION_COMPILER_ARGS) --includedir=. --includedir=$(top_builddir)/libgitg -o $@ $<
2012-04-14 11:46:39 +00:00
if ENABLE_PYTHON
overridesdir = $(pyoverridesdir)
2013-07-06 10:15:41 +00:00
overrides_PYTHON = \
2012-04-14 11:46:39 +00:00
GitgExt.py
endif
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = libgitg-ext-1.0.pc
gitg-ext-resources.c: resources/resources.xml $(shell $(GLIB_COMPILE_RESOURCES) --generate-dependencies --sourcedir $(srcdir)/resources resources/resources.xml)
$(GLIB_COMPILE_RESOURCES) --generate-source \
--sourcedir $(srcdir)/resources \
--target "$@" "$<"
gitg-ext-resources.h: resources/resources.xml $(shell $(GLIB_COMPILE_RESOURCES) --generate-dependencies --sourcedir $(srcdir)/resources resources/resources.xml)
$(GLIB_COMPILE_RESOURCES) --generate-header \
--sourcedir $(srcdir)/resources \
--target "$@" "$<"
BUILT_SOURCES = \
$(gir_DATA) \
libgitg-ext.h \
gitg-ext-resources.c \
gitg-ext-resources.h
EXTRA_DIST = \
$(pkgconfig_DATA) \
resources/resources.xml \
$(shell $(GLIB_COMPILE_RESOURCES) --generate-dependencies --sourcedir $(srcdir)/resources resources/resources.xml)
CLEANFILES = \
2013-07-06 10:15:41 +00:00
$(VALA_FILES:.vala=.c) \
2012-04-14 11:46:39 +00:00
GitgExt-1.0.gir \
GitgExt-1.0.typelib \
2013-07-06 10:15:41 +00:00
libgitg-ext-1.0.vapi \
libgitg_ext_1_0_la_vala.stamp
2012-04-14 11:46:39 +00:00
dist-hook:
cd $(distdir); rm -f $(BUILT_SOURCES)
-include $(top_srcdir)/git.mk
-include $(top_srcdir)/valadoc.mk
2013-07-06 10:15:41 +00:00
# vi:ts=8:noet