File: Makefile.am

package info (click to toggle)
gnome-autoar 0.1.1-4
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 2,276 kB
  • ctags: 882
  • sloc: ansic: 4,687; sh: 4,108; makefile: 231; xml: 78
file content (242 lines) | stat: -rw-r--r-- 7,409 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
# vim: set sw=8 ts=8 sts=8 noet:

NULL =

# Global options
ACLOCAL_AMFLAGS = -I m4

EXTRA_DIST =
BUILT_SOURCES =
DISTCHECK_CONFIGURE_FLAGS = --enable-gtk --enable-gtk-doc --enable-introspection


# Top-level directory
EXTRA_DIST += autogen.sh


# Directory: gnome-autoar
EXTRA_DIST += \
	gnome-autoar/autoar-enum-types.h.template	\
	gnome-autoar/autoar-enum-types.c.template	\
	$(NULL)

libgnome_autoar_la_headers = \
	gnome-autoar/autoar-compressor.h	\
	gnome-autoar/autoar-extractor.h		\
	gnome-autoar/autoar-format-filter.h	\
	gnome-autoar/autoar-misc.h		\
	gnome-autoar/autoar-mime-types.h	\
	$(NULL)
libgnome_autoar_la_sources = \
	gnome-autoar/autoar-compressor.c	\
	gnome-autoar/autoar-extractor.c		\
	gnome-autoar/autoar-format-filter.c	\
	gnome-autoar/autoar-misc.c		\
	gnome-autoar/autoar-mime-types.c	\
	$(NULL)
libgnome_autoar_la_private_files = \
	gnome-autoar/autoar-private.h		\
	gnome-autoar/autoar-private.c		\
	$(NULL)
libgnome_autoar_la_generated_files = \
	gnome-autoar/autoar-enum-types.h	\
	gnome-autoar/autoar-enum-types.c	\
	$(NULL)
libgnome_autoar_gtk_la_headers = \
	gnome-autoar/autoar-gtk-chooser.h	\
	$(NULL)
libgnome_autoar_gtk_la_sources = \
	gnome-autoar/autoar-gtk-chooser.c	\
	$(NULL)

BUILT_SOURCES += \
	$(libgnome_autoar_la_generated_files)	\
	$(NULL)

lib_LTLIBRARIES = gnome-autoar/libgnome-autoar-@LIBGNOME_AUTOAR_API_VERSION@.la

pkgconfigdir = $(libdir)/pkgconfig
nodist_pkgconfig_DATA = gnome-autoar/gnome-autoar-$(LIBGNOME_AUTOAR_API_VERSION).pc

autoarincludedir = $(includedir)/gnome-autoar-$(LIBGNOME_AUTOAR_API_VERSION)/gnome-autoar
autoarinclude_HEADERS = \
	gnome-autoar/gnome-autoar.h		\
	gnome-autoar/autoar-enum-types.h	\
	$(libgnome_autoar_la_headers)		\
	$(NULL)

gnome_autoar_libgnome_autoar_@LIBGNOME_AUTOAR_API_VERSION@_la_SOURCES = \
	$(libgnome_autoar_la_generated_files)	\
	$(libgnome_autoar_la_private_files)	\
	$(libgnome_autoar_la_headers)		\
	$(libgnome_autoar_la_sources)		\
	$(NULL)
gnome_autoar_libgnome_autoar_@LIBGNOME_AUTOAR_API_VERSION@_la_CPPFLAGS = \
	$(AM_CPPFLAGS)				\
	$(NULL)
gnome_autoar_libgnome_autoar_@LIBGNOME_AUTOAR_API_VERSION@_la_CFLAGS = \
	$(GIO_CFLAGS)				\
	$(LIBARCHIVE_CFLAGS)			\
	-I$(top_srcdir)				\
	-I$(top_builddir)/gnome-autoar		\
	$(AM_CFLAGS)				\
	$(NULL)
gnome_autoar_libgnome_autoar_@LIBGNOME_AUTOAR_API_VERSION@_la_LIBADD = \
	$(GIO_LIBS)				\
	$(LIBARCHIVE_LIBS)			\
	$(NULL)

if ENABLE_GTK

lib_LTLIBRARIES += gnome-autoar/libgnome-autoar-gtk-@LIBGNOME_AUTOAR_API_VERSION@.la
nodist_pkgconfig_DATA += gnome-autoar/gnome-autoar-gtk-$(LIBGNOME_AUTOAR_API_VERSION).pc

autoargtkincludedir = $(includedir)/gnome-autoar-$(LIBGNOME_AUTOAR_API_VERSION)/gnome-autoar
autoargtkinclude_HEADERS = \
	gnome-autoar/autoar-gtk.h		\
	$(libgnome_autoar_gtk_la_headers)	\
	$(NULL)

gnome_autoar_libgnome_autoar_gtk_@LIBGNOME_AUTOAR_API_VERSION@_la_SOURCES = \
	$(libgnome_autoar_gtk_la_headers)	\
	$(libgnome_autoar_gtk_la_sources)	\
	$(NULL)
gnome_autoar_libgnome_autoar_gtk_@LIBGNOME_AUTOAR_API_VERSION@_la_CPPFLAGS = \
	$(AM_CPPFLAGS)
	$(NULL)
gnome_autoar_libgnome_autoar_gtk_@LIBGNOME_AUTOAR_API_VERSION@_la_CFLAGS = \
	$(GTK_CFLAGS)				\
	-I$(top_srcdir)				\
	-I$(top_builddir)/gnome-autoar		\
	$(AM_CFLAGS)				\
	$(NULL)
gnome_autoar_libgnome_autoar_gtk_@LIBGNOME_AUTOAR_API_VERSION@_la_LIBADD = \
	$(GTK_LIBS)				\
	$(top_builddir)/gnome-autoar/libgnome-autoar-@LIBGNOME_AUTOAR_API_VERSION@.la	\
	$(NULL)

endif

gnome-autoar/autoar-enum-types.h: gnome-autoar/autoar-enum-types.h.template $(libgnome_autoar_la_headers)
	$(AM_V_GEN) (cd $(srcdir) && $(GLIB_MKENUMS) --template gnome-autoar/autoar-enum-types.h.template $(libgnome_autoar_la_headers) ) > $@
gnome-autoar/autoar-enum-types.c: gnome-autoar/autoar-enum-types.c.template $(libgnome_autoar_la_headers)
	$(AM_V_GEN) (cd $(srcdir) && $(GLIB_MKENUMS) --template gnome-autoar/autoar-enum-types.c.template $(libgnome_autoar_la_headers) ) > $@

CLEANFILES = $(BUILT_SOURCES)
DISTCLEANFILES = $(BUILT_SOURCES) \
                 gnome-autoar/gnome-autoar-gtk-@LIBGNOME_AUTOAR_API_VERSION@.pc \
                 gnome-autoar/gnome-autoar-@LIBGNOME_AUTOAR_API_VERSION@.pc
MAINTAINERCLEANFILES = $(BUILT_SOURCES)

-include $(INTROSPECTION_MAKEFILE)
INTROSPECTION_GIRS =
INTROSPECTION_SCANNER_ARGS = --add-include-path=$(top_builddir)/gnome-autoar
INTROSPECTION_COMPILER_ARGS = --includedir=$(top_builddir)/gnome-autoar

if HAVE_INTROSPECTION

INTROSPECTION_GIRS += gnome-autoar/GnomeAutoar-0.1.gir

girdir = $(datadir)/gir-1.0
gir_DATA = $(INTROSPECTION_GIRS)

typelibdir = $(libdir)/girepository-1.0
typelib_DATA = $(INTROSPECTION_GIRS:.gir=.typelib)

CLEANFILES += $(gir_DATA) $(typelib_DATA)

gnome-autoar/GnomeAutoar-0.1.gir: gnome-autoar/libgnome-autoar-@LIBGNOME_AUTOAR_API_VERSION@.la
gnome_autoar_GnomeAutoar_0_1_gir_SCANNERFLAGS = --identifier-prefix=Autoar
gnome_autoar_GnomeAutoar_0_1_gir_CFLAGS = -I$(top_srcdir) $(AM_CFLAGS)
gnome_autoar_GnomeAutoar_0_1_gir_INCLUDES = GLib-2.0 GObject-2.0 Gio-2.0
gnome_autoar_GnomeAutoar_0_1_gir_LIBS = gnome-autoar/libgnome-autoar-@LIBGNOME_AUTOAR_API_VERSION@.la
gnome_autoar_GnomeAutoar_0_1_gir_FILES = \
	$(libgnome_autoar_la_headers)		\
	$(libgnome_autoar_la_sources)		\
	$(NULL)

if ENABLE_GTK

INTROSPECTION_GIRS += gnome-autoar/GnomeAutoarGtk-0.1.gir

gnome-autoar/GnomeAutoarGtk-0.1.gir: gnome-autoar/libgnome-autoar-gtk-@LIBGNOME_AUTOAR_API_VERSION@.la gnome-autoar/GnomeAutoar-0.1.gir
gnome_autoar_GnomeAutoarGtk_0_1_gir_SCANNERFLAGS = --identifier-prefix=AutoarGtk
gnome_autoar_GnomeAutoarGtk_0_1_gir_CFLAGS = -I$(top_srcdir) $(AM_CFLAGS)
gnome_autoar_GnomeAutoarGtk_0_1_gir_INCLUDES = GnomeAutoar-0.1 Gtk-3.0
gnome_autoar_GnomeAutoarGtk_0_1_gir_LIBS = gnome-autoar/libgnome-autoar-gtk-@LIBGNOME_AUTOAR_API_VERSION@.la
gnome_autoar_GnomeAutoarGtk_0_1_gir_FILES = \
	$(libgnome_autoar_gtk_la_headers)		\
	$(libgnome_autoar_gtk_la_sources)		\
	$(NULL)

endif

endif


# Directory: data
gsettings_ENUM_NAMESPACE = org.gnome.desktop.archives
gsettings_ENUM_FILES = $(top_srcdir)/gnome-autoar/autoar-format-filter.h

gsettings_SCHEMAS = data/org.gnome.desktop.archives.gschema.xml
EXTRA_DIST += $(gsettings_SCHEMAS)

@GSETTINGS_RULES@


# Directory: tests
noinst_PROGRAMS = \
	tests/test-extract	\
	tests/test-extract-unit \
	tests/test-create	\
	$(NULL)

test_cflags = \
	$(GIO_CFLAGS)		\
	$(LIBARCHIVE_CFLAGS)	\
	-I$(top_srcdir)		\
	$(AM_CFLAGS)		\
	$(NULL)

test_libs = \
	$(GIO_LIBS)		\
	$(top_builddir)/gnome-autoar/libgnome-autoar-@LIBGNOME_AUTOAR_API_VERSION@.la	\
	$(NULL)

tests_test_extract_SOURCES = tests/test-extract.c
tests_test_extract_CFLAGS = $(test_cflags)
tests_test_extract_LDADD = $(test_libs)

tests_test_extract_unit_SOURCES = tests/test-extract-unit.c
tests_test_extract_unit_CFLAGS = $(test_cflags)
tests_test_extract_unit_LDADD = $(test_libs)

tests_test_create_SOURCES = tests/test-create.c
tests_test_create_CFLAGS = $(test_cflags)
tests_test_create_LDADD = $(test_libs)

if ENABLE_GTK

noinst_PROGRAMS += \
	tests/test-ui		\
	$(NULL)

test_gtk_cflags = \
	$(GTK_CFLAGS)		\
	-I$(top_srcdir)		\
	$(AM_CFLAGS)		\
	$(NULL)

test_gtk_libs = \
	$(GTK_LIBS)		\
	$(top_builddir)/gnome-autoar/libgnome-autoar-gtk-@LIBGNOME_AUTOAR_API_VERSION@.la	\
	$(top_builddir)/gnome-autoar/libgnome-autoar-@LIBGNOME_AUTOAR_API_VERSION@.la	\
	$(NULL)

tests_test_ui_SOURCES = tests/test-ui.c
tests_test_ui_CFLAGS = $(test_gtk_cflags)
tests_test_ui_LDADD = $(test_gtk_libs)

endif

SUBDIRS = . docs