Makefile.am 14.7 KB
Newer Older
1
###############################################################################
2 3 4
# Automake targets and declarations
###############################################################################

5 6
AUTOMAKE_OPTIONS = subdir-objects

7
NULL =
8
EXTRA_DIST = \
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
9
	vlc-plugin.pc.in \
10
	libvlccore.sym \
11
	revision.txt
12

13
BUILT_SOURCES = $(nodist_pluginsinclude_HEADERS)
Christophe Mutricy's avatar
Christophe Mutricy committed
14
CLEANFILES = $(BUILT_SOURCES)
15

16
SUFFIXES = .pc.in .pc .rc.in .rc
17

18 19 20 21
###############################################################################
# Headers
###############################################################################

22
pluginsincludedir = $(pkgincludedir)/plugins
23

24
pluginsinclude_HEADERS = \
25
	../include/vlc_access.h \
Rafaël Carré's avatar
Rafaël Carré committed
26
	../include/vlc_addons.h \
27
	../include/vlc_aout.h \
28
	../include/vlc_aout_volume.h \
29
	../include/vlc_arrays.h \
30
	../include/vlc_atomic.h \
31
	../include/vlc_avcodec.h \
32 33 34
	../include/vlc_bits.h \
	../include/vlc_block.h \
	../include/vlc_block_helper.h \
35
	../include/vlc_boxes.h \
36 37
	../include/vlc_charset.h \
	../include/vlc_codec.h \
38 39
	../include/vlc_common.h \
	../include/vlc_config.h \
40
	../include/vlc_config_cat.h \
41
	../include/vlc_configuration.h \
42
	../include/vlc_cpu.h \
43
	../include/vlc_dialog.h \
44
	../include/vlc_demux.h \
45
	../include/vlc_epg.h \
46
	../include/vlc_es.h \
47 48
	../include/vlc_es_out.h \
	../include/vlc_events.h \
49
	../include/vlc_filter.h \
50
	../include/vlc_fourcc.h \
51
	../include/vlc_fs.h \
52
	../include/vlc_gcrypt.h \
53
	../include/vlc_opengl.h \
54
	../include/vlc_http.h \
55
	../include/vlc_httpd.h \
56
	../include/vlc_image.h \
57
	../include/vlc_inhibit.h \
58
	../include/vlc_input.h \
59
	../include/vlc_input_item.h \
60
	../include/vlc_interface.h \
Rafaël Carré's avatar
Rafaël Carré committed
61
	../include/vlc_keys.h \
Thomas Guillem's avatar
Thomas Guillem committed
62
	../include/vlc_keystore.h \
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
63
	../include/vlc_main.h \
64
	../include/vlc_md5.h \
65
	../include/vlc_messages.h \
66
	../include/vlc_meta.h \
67
	../include/vlc_meta_fetcher.h \
jetru's avatar
jetru committed
68
	../include/vlc_media_library.h \
69
	../include/vlc_memstream.h \
70
	../include/vlc_mime.h \
71
	../include/vlc_modules.h \
Pierre Ynard's avatar
Pierre Ynard committed
72
	../include/vlc_mouse.h \
73
	../include/vlc_mtime.h \
74
	../include/vlc_network.h \
75
	../include/vlc_objects.h \
76
	../include/vlc_picture.h \
77 78
	../include/vlc_picture_fifo.h \
	../include/vlc_picture_pool.h \
79
	../include/vlc_playlist.h \
80
	../include/vlc_plugin.h \
81
	../include/vlc_probe.h \
82 83
	../include/vlc_rand.h \
	../include/vlc_services_discovery.h \
84
	../include/vlc_fingerprinter.h \
85
	../include/vlc_interrupt.h \
86
	../include/vlc_renderer_discovery.h \
87
	../include/vlc_sout.h \
88
	../include/vlc_spu.h \
89 90
	../include/vlc_stream.h \
	../include/vlc_strings.h \
91
	../include/vlc_subpicture.h \
92
	../include/vlc_text_style.h \
93
	../include/vlc_threads.h \
94
	../include/vlc_tls.h \
95
	../include/vlc_url.h \
96 97
	../include/vlc_variables.h \
	../include/vlc_vlm.h \
98
	../include/vlc_video_splitter.h \
99
	../include/vlc_vout.h \
100
	../include/vlc_vout_display.h \
101
	../include/vlc_vout_osd.h \
102
	../include/vlc_vout_window.h \
103
	../include/vlc_xml.h \
104
	../include/vlc_xlib.h \
105
	$(NULL)
106
nodist_pluginsinclude_HEADERS = ../include/vlc_about.h
107

108
noinst_HEADERS = \
109
	../include/vlc_codec_synchro.h \
110
	../include/vlc_codecs.h \
Pierre Ynard's avatar
Pierre Ynard committed
111
	../include/vlc_extensions.h \
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
112
	../include/vlc_fixups.h \
113
	../include/vlc_intf_strings.h \
114
	../include/vlc_iso_lang.h \
Pierre Ynard's avatar
Pierre Ynard committed
115
	../include/vlc_memory.h \
Rémi Denis-Courmont's avatar
Tabs  
Rémi Denis-Courmont committed
116
	../include/vlc_pgpkey.h \
117 118
	../include/vlc_update.h \
	../include/vlc_vod.h \
Pierre Ynard's avatar
Pierre Ynard committed
119
	../include/vlc_vout_wrapper.h \
120 121
	$(NULL)

122
../include/vlc_about.h: Makefile.am $(top_srcdir)/COPYING $(top_srcdir)/THANKS $(top_srcdir)/AUTHORS
123 124 125 126 127 128 129
	$(AM_V_at)rm -f -- "$@.tmp"
	$(AM_V_at)mkdir -p -- ../include
	$(AM_V_GEN)(echo "/* Automatically generated file - DO NOT EDIT */" && \
	echo "static const char psz_license[] =" && \
	sed 's/"/\\"/g;s/^.*$$/\"&\\n\"/' "$(top_srcdir)/COPYING" && \
	echo ";" && \
	echo "static const char psz_thanks[] =" && \
JP Dinger's avatar
JP Dinger committed
130
	sed '/\$$Id:/d;s/"/\\"/g;s/<.*.> //;s/^.*$$/\"&\\n\"/' \
131 132 133
		"$(top_srcdir)/THANKS" && \
	echo ";" && \
	echo "static const char psz_authors[] =" && \
134
	sed '/\$$Id:/d;s/"/\\"/g;s/<.*.> //;s/^.*$$/\"&\\n\"/' \
135 136 137
		"$(top_srcdir)/AUTHORS" && \
	echo ";") >> "$@.tmp"
	$(AM_V_at)mv -f -- "$@.tmp" "$@"
138

139 140 141 142 143
###############################################################################
# pkg-config integration
###############################################################################

pkgconfigdir = $(libdir)/pkgconfig
144
pkgconfig_DATA = vlc-plugin.pc
145 146
CLEANFILES += $(pkgconfig_DATA)

147
.pc.in.pc: $(top_builddir)/config.status
148
	$(AM_V_GEN)cd "$(top_builddir)" && \
149 150
	$(SHELL) ./config.status --file="src/$@"

151 152 153 154 155 156 157 158 159 160 161 162 163
##############################################################################
# Windows resource files
##############################################################################

if HAVE_WIN32
noinst_DATA = libvlc_win32_rc.rc
endif
EXTRA_DIST += libvlc_win32_rc.rc.in

.rc.in.rc: $(top_builddir)/config.status
	cd "$(top_builddir)" && \
	$(SHELL) ./config.status --file="src/$@"

164 165 166 167
###############################################################################
# Building libvlc
###############################################################################

168
lib_LTLIBRARIES = libvlccore.la
169

170
AM_CPPFLAGS = $(INCICONV) $(IDN_CFLAGS) \
Rafaël Carré's avatar
Rafaël Carré committed
171
	-DMODULE_STRING=\"core\" \
172
	-DLOCALEDIR=\"$(localedir)\" \
173
	-DPKGDATADIR=\"$(vlcdatadir)\" \
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
174
	-DPKGLIBDIR=\"$(vlclibdir)\"
175
AM_CFLAGS = $(CFLAGS_libvlccore)
176 177 178
if HAVE_DYNAMIC_PLUGINS
AM_CPPFLAGS += -DHAVE_DYNAMIC_PLUGINS
endif
179 180 181 182
if HAVE_DBUS
AM_CPPFLAGS += -DHAVE_DBUS
AM_CFLAGS += $(DBUS_CFLAGS)
endif
183 184 185 186

libvlccore_la_SOURCES = $(SOURCES_libvlc)
libvlccore_la_LDFLAGS = \
	$(LDFLAGS_libvlccore) \
187
	-no-undefined \
188
	-export-symbols $(srcdir)/libvlccore.sym \
189
	-version-info 8:0:0
190
libvlccore_la_LIBADD = $(LIBS_libvlccore) \
191
	../compat/libcompat.la \
192
	$(LTLIBINTL) $(LTLIBICONV) \
193
	$(IDN_LIBS) $(LIBPTHREAD) $(SOCKET_LIBS) $(LIBRT) $(LIBDL) $(LIBM)
194
libvlccore_la_DEPENDENCIES = libvlccore.sym
195
if HAVE_WIN32
196
libvlccore_la_DEPENDENCIES += libvlc_win32_rc.$(OBJEXT)
197
libvlccore_la_LDFLAGS += -Wl,libvlc_win32_rc.$(OBJEXT) -avoid-version -Wc,-static
198
endif
199 200 201
if HAVE_OS2
libvlccore_la_LDFLAGS += -avoid-version
endif
202 203 204
if HAVE_DBUS
libvlccore_la_LIBADD += $(DBUS_LIBS)
endif
205

206
libvlc_win32_rc.$(OBJEXT): libvlc_win32_rc.rc
207
	$(WINDRES) --include-dir $(top_srcdir)/share --include-dir $(top_srcdir)/extras/package/win32 -i $< -o $@
208

209
EXTRA_libvlccore_la_SOURCES = \
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
210
	$(SOURCES_libvlc_darwin) \
211
	$(SOURCES_libvlc_android) \
212
	$(SOURCES_libvlc_linux) \
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
213
	$(SOURCES_libvlc_win32) \
komh's avatar
komh committed
214
	$(SOURCES_libvlc_os2) \
215
	$(SOURCES_libvlc_other) \
216
	$(SOURCES_libvlc_httpd) \
217
	$(SOURCES_libvlc_sout) \
218
	$(SOURCES_libvlc_vlm) \
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
219
	$(NULL)
220
if HAVE_DARWIN
221
libvlccore_la_SOURCES += $(SOURCES_libvlc_darwin)
222
else
223 224 225
if HAVE_ANDROID
libvlccore_la_SOURCES += $(SOURCES_libvlc_android)
else
226
if HAVE_LINUX
227
libvlccore_la_SOURCES += $(SOURCES_libvlc_linux)
228
else
229
if HAVE_WIN32
230
libvlccore_la_SOURCES += $(SOURCES_libvlc_win32)
231
else
komh's avatar
komh committed
232 233 234
if HAVE_OS2
libvlccore_la_SOURCES += $(SOURCES_libvlc_os2)
else
235
libvlccore_la_SOURCES += $(SOURCES_libvlc_other)
236
endif
237 238 239
endif
endif
endif
240
endif
241 242 243
if BUILD_HTTPD
libvlccore_la_SOURCES += $(SOURCES_libvlc_httpd)
endif
244
if ENABLE_SOUT
245
libvlccore_la_SOURCES += $(SOURCES_libvlc_sout)
246 247 248
if ENABLE_VLM
libvlccore_la_SOURCES += $(SOURCES_libvlc_vlm)
endif
249
endif
250

251
SOURCES_libvlc_darwin = \
252
	darwin/dirs.c \
253
	posix/filesystem.c \
254
	posix/plugin.c \
255
	darwin/thread.c \
256
	posix/timer.c \
257
	darwin/specific.c \
258
	posix/rand.c \
259
	darwin/error.c \
260
	darwin/netconf.c \
261 262
	$(NULL)

263
SOURCES_libvlc_android = \
264 265
	linux/cpu.c \
	linux/dirs.c \
266
	linux/thread.c \
Rafaël Carré's avatar
Rafaël Carré committed
267
	android/thread.c \
268
	android/error.c \
269 270 271
	posix/filesystem.c \
	posix/plugin.c \
	posix/timer.c \
272
	android/specific.c  \
273 274 275
	posix/rand.c \
	$(NULL)

276
SOURCES_libvlc_linux = \
277 278
	linux/cpu.c \
	linux/dirs.c \
279
	posix/dirs.c \
280
	posix/error.c \
281
	posix/filesystem.c \
282
	posix/netconf.c \
283
	posix/plugin.c \
284
	linux/thread.c \
285
	posix/thread.c \
286
	posix/timer.c \
287
	posix/specific.c \
288
	posix/rand.c \
289 290
	$(NULL)

291
SOURCES_libvlc_win32 = \
292
	win32/dirs.c \
293
	win32/error.c \
294
	win32/filesystem.c \
295
	win32/netconf.c \
296
	win32/plugin.c \
297
	win32/thread.c \
298
	win32/specific.c \
299
	win32/winsock.c \
300
	win32/rand.c \
301 302
	$(NULL)

komh's avatar
komh committed
303
SOURCES_libvlc_os2 = \
304
	os2/getaddrinfo.c \
305
	os2/dirs.c \
306
	darwin/error.c \
307
	os2/filesystem.c \
KO Myung-Hun's avatar
KO Myung-Hun committed
308
	os2/netconf.c \
309
	os2/plugin.c \
komh's avatar
komh committed
310
	os2/thread.c \
komh's avatar
komh committed
311
	os2/specific.c \
312
	os2/rand.c \
komh's avatar
komh committed
313 314
	$(NULL)

315
SOURCES_libvlc_other = \
316
	posix/dirs.c \
317
	posix/error.c \
318
	posix/filesystem.c \
319
	posix/netconf.c \
320
	posix/thread.c \
321
	posix/timer.c \
322
	posix/plugin.c \
323
	posix/specific.c \
324
	posix/rand.c \
325
	$(NULL)
326

327 328 329
SOURCES_libvlc_common = \
	libvlc.c \
	libvlc.h \
330
	libvlc-module.c \
331
	missing.c \
332
	revision.c \
333
	version.c \
334
	interface/dialog.c \
335
	interface/interface.c \
336
	playlist/playlist_internal.h \
337
	playlist/art.c \
Christophe Mutricy's avatar
Christophe Mutricy committed
338
	playlist/art.h \
339
	playlist/aout.c \
340 341 342
	playlist/thread.c \
	playlist/control.c \
	playlist/engine.c \
343
	playlist/fetcher.c \
Christophe Mutricy's avatar
Christophe Mutricy committed
344
	playlist/fetcher.h \
345 346
	playlist/sort.c \
	playlist/loadsave.c \
347
	playlist/preparser.c \
Christophe Mutricy's avatar
Christophe Mutricy committed
348
	playlist/preparser.h \
349
	playlist/tree.c \
350
	playlist/item.c \
351
	playlist/search.c \
352
	playlist/services_discovery.c \
353
	input/item.c \
354 355 356 357
	input/access.c \
	input/clock.c \
	input/control.c \
	input/decoder.c \
358
	input/decoder_synchro.c \
359
	input/demux.c \
360
	input/demux_chained.c \
361
	input/es_out.c \
362
	input/es_out_timeshift.c \
363
	input/event.c \
364
	input/input.c \
Christophe Mutricy's avatar
Christophe Mutricy committed
365
	input/info.h \
366
	input/meta.c \
367 368
	input/clock.h \
	input/decoder.h \
369
	input/demux.h \
370
	input/es_out.h \
371
	input/es_out_timeshift.h \
372
	input/event.h \
373
	input/item.h \
374
	input/stream.h \
375
	input/input_internal.h \
376
	input/input_interface.h \
377
	input/vlm_internal.h \
Laurent Aimar's avatar
Laurent Aimar committed
378
	input/vlm_event.h \
379 380
	input/resource.h \
	input/resource.c \
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
381
	input/stats.c \
382
	input/stream.c \
383
	input/stream_fifo.c \
384
	input/stream_filter.c \
385
	input/stream_memory.c \
386 387
	input/subtitles.c \
	input/var.c \
ivoire's avatar
ivoire committed
388
	video_output/chrono.h \
389 390
	video_output/control.c \
	video_output/control.h \
391 392
	video_output/display.c \
	video_output/display.h \
Pierre Ynard's avatar
Pierre Ynard committed
393
	video_output/event.h \
394 395
	video_output/inhibit.c \
	video_output/inhibit.h \
396 397
	video_output/interlacing.c \
	video_output/interlacing.h \
398 399
	video_output/snapshot.c \
	video_output/snapshot.h \
400
	video_output/statistic.h \
401 402
	video_output/video_output.c \
	video_output/video_text.c \
403
	video_output/video_epg.c \
404 405
	video_output/video_widgets.c \
	video_output/vout_subpictures.c \
406
	video_output/window.c \
407
	video_output/window.h \
408
	video_output/opengl.c \
409
	video_output/vout_intf.c \
Laurent Aimar's avatar
Laurent Aimar committed
410
	video_output/vout_internal.h \
411
	video_output/vout_control.h \
412
	video_output/vout_wrapper.c \
zorglub's avatar
zorglub committed
413
	audio_output/aout_internal.h \
414 415 416 417
	audio_output/common.c \
	audio_output/dec.c \
	audio_output/filters.c \
	audio_output/output.c \
418
	audio_output/volume.c \
419
	network/getaddrinfo.c \
420
	network/http_auth.c \
421 422 423
	network/io.c \
	network/tcp.c \
	network/udp.c \
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
424
	network/rootbind.c \
425
	network/tls.c \
426
	text/charset.c \
427
	text/memstream.c \
428 429
	text/strings.c \
	text/unicode.c \
430
	text/url.c \
431
	text/filesystem.c \
432 433
	text/iso_lang.c \
	text/iso-639_def.h \
434
	misc/md5.c \
435
	misc/probe.c \
436
	misc/rand.c \
437 438
	misc/mtime.c \
	misc/block.c \
439
	misc/fifo.c \
440
	misc/fourcc.c \
441
	misc/fourcc_list.h \
442
	misc/es_format.c \
443
	misc/picture.c \
444
	misc/picture.h \
445 446
	misc/picture_fifo.c \
	misc/picture_pool.c \
447 448
	misc/interrupt.h \
	misc/interrupt.c \
Thomas Guillem's avatar
Thomas Guillem committed
449
	misc/keystore.c \
450
	misc/renderer_discovery.c \
451 452
	modules/modules.h \
	modules/modules.c \
453
	modules/bank.c \
454
	modules/cache.c \
455
	modules/entry.c \
456
	modules/textdomain.c \
457 458
	misc/threads.c \
	misc/cpu.c \
459
	misc/epg.c \
460
	misc/exit.c \
461
	config/configuration.h \
462 463 464
	config/core.c \
	config/chain.c \
	config/file.c \
465
        config/help.c \
466
	config/intf.c \
467
	config/keys.c \
468
	config/cmdline.c \
469 470
	config/getopt.c \
	config/vlc_getopt.h \
471
	misc/events.c \
472 473
	misc/image.c \
	misc/messages.c \
474
	misc/mime.c \
475
	misc/objects.c \
zorglub's avatar
zorglub committed
476
	misc/variables.h \
477 478
	misc/variables.c \
	misc/error.c \
Rafaël Carré's avatar
Typo  
Rafaël Carré committed
479
	misc/update.h \
480
	misc/update.c \
481
	misc/update_crypto.c \
482 483
	misc/xml.c \
	extras/libc.c \
484
	extras/tdestroy.c \
485
	misc/addons.c \
Laurent Aimar's avatar
Laurent Aimar committed
486
	misc/filter.c \
487
	misc/filter_chain.c \
aajanki's avatar
aajanki committed
488
	misc/httpcookies.c \
489
	misc/fingerprinter.c \
490
	misc/text_style.c \
491 492
	misc/subpicture.c \
	misc/subpicture.h \
493 494
	$(NULL)

495 496 497 498
SOURCES_libvlc_httpd = \
	network/httpd.c \
	$(NULL)

499 500 501 502 503 504 505
SOURCES_libvlc_sout = \
	stream_output/stream_output.c \
	stream_output/stream_output.h \
	stream_output/sap.c \
	stream_output/sdp.c \
	$(NULL)

506 507
SOURCES_libvlc_vlm = \
	input/vlm.c \
Laurent Aimar's avatar
Laurent Aimar committed
508
	input/vlm_event.c \
509 510 511
	input/vlmshell.c \
	$(NULL)

512 513 514 515
SOURCES_libvlc = \
	$(SOURCES_libvlc_common) \
	$(NULL)

516 517 518
# FourCC tables
BUILT_SOURCES += fourcc_tables.h
EXTRA_DIST += misc/fourcc_gen.c
komh's avatar
komh committed
519
MOSTLYCLEANFILES = fourcc_gen$(BUILDEXEEXT)
520

komh's avatar
komh committed
521
fourcc_gen$(BUILDEXEEXT): misc/fourcc_gen.c misc/fourcc_list.h ../include/vlc_fourcc.h
522 523 524
	$(AM_V_at)rm -f -- $@
	$(AM_V_CC)$(BUILDCC) -I$(srcdir) -o $@ $<

komh's avatar
komh committed
525
fourcc_tables.h: fourcc_gen$(BUILDEXEEXT)
526 527 528 529
	$(AM_V_at)rm -f -- $@.tmp
	$(AM_V_GEN)$(builddir)/fourcc_gen > $@.tmp
	$(AM_V_at)mv -f -- $@.tmp $@

530 531 532 533 534 535
# Unit/regression tests
#
check_PROGRAMS = \
	test_block \
	test_dictionary \
	test_i18n_atof \
536
	test_interrupt \
537
	test_md5 \
538
	test_picture_pool \
539 540 541 542 543 544
	test_timer \
	test_url \
	test_utf8 \
	test_xmlent \
	test_headers

545
TESTS = $(check_PROGRAMS) check_symbols
546 547 548 549 550 551 552

test_block_SOURCES = test/block_test.c
test_block_LDADD = $(LDADD) $(LIBS_libvlccore)
test_block_DEPENDENCIES =

test_dictionary_SOURCES = test/dictionary.c
test_i18n_atof_SOURCES = test/i18n_atof.c
553 554
test_interrupt_SOURCES = test/interrupt.c
test_interrupt_LDADD = $(LDADD) $(LIBS_libvlccore) $(LIBPTHREAD)
555
test_md5_SOURCES = test/md5.c
556
test_picture_pool_SOURCES = test/picture_pool.c
557 558 559 560 561 562 563 564 565 566
test_timer_SOURCES = test/timer.c
test_url_SOURCES = test/url.c
test_utf8_SOURCES = test/utf8.c
test_xmlent_SOURCES = test/xmlent.c
test_headers_SOURCES = test/headers.c

AM_LDFLAGS = -no-install
LDADD = libvlccore.la \
	../compat/libcompat.la

Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
567 568 569 570 571
###############################################################################
# GIT revision
###############################################################################

BUILT_SOURCES += stamp-revision
572
MAINTAINERCLEANFILES = $(srcdir)/revision.txt $(srcdir)/revision.c
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
573

574 575 576 577
$(srcdir)/revision.c: $(srcdir)/revision.txt
	$(AM_V_at)rm -f -- $@
	$(AM_V_GEN)echo "const char psz_vlc_changeset[] = \"$$(cat $<)\";" \
		> $@
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
578

579
$(srcdir)/revision.txt:
580
	$(AM_V_at)$(MAKE) stamp-revision
581
	$(AM_V_GEN)touch $@
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
582 583

stamp-revision:
584
	$(AM_V_at)rm -f -- revision.tmp
585 586 587 588 589 590
	$(AM_V_GEN)if ! git \
			--git-dir="$(top_srcdir)/.git/" describe \
			--tags --long --match '?.*.*' --always; then \
		cat $(srcdir)/revision.txt ; \
	fi > revision.tmp
	$(AM_V_at)if diff revision.tmp $(srcdir)/revision.txt >/dev/null 2>&1; then \
591 592
		rm -f -- revision.tmp; \
	else \
593 594 595
		mv -f -- revision.tmp $(srcdir)/revision.txt; \
	fi
#2>&1
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
596

597 598 599
###############################################################################
# Unit/regression test
###############################################################################
600

601
dist_check_SCRIPTS = check_headers check_symbols
602

603
check-local:
604
	for h in `echo $(pkginclude_HEADERS) | sed -e s,\.\./include/,,g`; \
605 606 607 608 609 610 611 612
	do \
		echo grep - "#include <$$h>" $(srcdir)/test/headers.c ; \
		if ! grep -- "#include <$$h>" $(srcdir)/test/headers.c ; \
		then \
			echo "Header $$h not included in test/headers.c!"; \
			exit 1; \
		fi ; \
	done
613
	$(SHELL) $(srcdir)/check_headers $(pluginsinclude_HEADERS)
614

615
FORCE:
616 617 618 619
	@echo "Generated source cannot be phony. Go away." >&2
	@exit 1

.PHONY: FORCE