gitg/libgitg-gtk/Makefile.am

100 lines
2.6 KiB
Text
Raw Normal View History

2012-04-15 12:57:30 +00:00
lib_LTLIBRARIES = libgitg-gtk-1.0.la
INCLUDES = \
-I$(top_srcdir) \
-I$(srcdir) \
$(LIBGITG_CFLAGS) \
$(LIBGITG_GTK_CFLAGS) \
$(WARN_CFLAGS) \
-DDATADIR=\""$(datadir)"\" \
-DLIBDIR=\""$(libdir)"\"
libgitg_gtk_1_0_la_LDFLAGS = \
-export-dynamic -no-undefined -export-symbols-regex "^[^_].*"
libgitg_gtk_1_0_la_LIBADD = \
$(LIBGITG_LIBS) \
$(LIBGITG_GTK_LIBS) \
$(top_builddir)/libgitg/libgitg-1.0.la
INST_H_FILES = \
libgitg-gtk.h
VALAFLAGS = \
--pkg Ggit-1.0 \
--pkg Gitg-1.0 \
--pkg gtk+-3.0 \
--pkg gio-2.0 \
--pkg webkitgtk-3.0 \
--pkg gee-1.0 \
--pkg json-glib-1.0 \
2012-07-06 17:36:06 +00:00
$(GITG_VALAFLAGS) \
--vapidir $(top_srcdir)/vapi \
2012-04-15 12:57:30 +00:00
--header libgitg-gtk.h \
--includedir libgitg-gtk \
--basedir $(top_srcdir) \
--gir GitgGtk-1.0.gir \
--library libgitg-gtk-1.0 \
--girdir "$(top_builddir)/libgitg"
2012-04-15 12:57:30 +00:00
GitgGtk-1.0.gir: libgitg-gtk-1.0.la
libgitg-gtk.h: libgitg-gtk-1.0.la
2012-04-15 12:57:30 +00:00
VALA_FILES = \
gitg-gtk-commit-model.vala \
gitg-gtk-label-renderer.vala \
gitg-gtk-cell-renderer-lanes.vala \
gitg-gtk-commit-list-view.vala \
gitg-gtk-diff-view.vala
2012-04-15 12:57:30 +00:00
# Ignore all warnings for vala code...
libgitg_gtk_1_0_la_CFLAGS = \
-w
libgitg_gtk_1_0_la_SOURCES = \
$(VALA_FILES) \
gitg-gtk-resources.c
2012-04-15 12:57:30 +00:00
headerdir = $(prefix)/include/libgitg-gtk-1.0/libgitg-gtk
header_DATA = $(INST_H_FILES)
girdir = $(INTROSPECTION_GIRDIR)
gir_DATA = GitgGtk-1.0.gir
typelibdir = $(INTROSPECTION_TYPELIBDIR)
typelib_DATA = GitgGtk-1.0.typelib
%.typelib: %.gir
$(INTROSPECTION_COMPILER) $(INTROSPECTION_COMPILER_ARGS) --includedir=. --includedir="$(top_builddir)/libgitg" -o $@ $<
2012-04-15 12:57:30 +00:00
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = libgitg-gtk-1.0.pc
gitg-gtk-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-gtk-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-gtk.h \
gitg-gtk-resources.c \
gitg-gtk-resources.h
EXTRA_DIST = \
$(pkgconfig_DATA) \
resources/resources.xml \
$(shell $(GLIB_COMPILE_RESOURCES) --generate-dependencies --sourcedir $(srcdir)/resources resources/resources.xml)
2012-04-15 12:57:30 +00:00
CLEANFILES = $(VALA_FILES:.vala=.c)
dist-hook:
cd $(distdir); rm -f $(BUILT_SOURCES)
-include $(top_srcdir)/git.mk