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_mime.h \
70
	../include/vlc_modules.h \
Pierre Ynard's avatar
Pierre Ynard committed
71
	../include/vlc_mouse.h \
72
	../include/vlc_mtime.h \
73
	../include/vlc_network.h \
74
	../include/vlc_objects.h \
75
	../include/vlc_picture.h \
76 77
	../include/vlc_picture_fifo.h \
	../include/vlc_picture_pool.h \
78
	../include/vlc_playlist.h \
79
	../include/vlc_plugin.h \
80
	../include/vlc_probe.h \
81 82
	../include/vlc_rand.h \
	../include/vlc_services_discovery.h \
83
	../include/vlc_fingerprinter.h \
84
	../include/vlc_interrupt.h \
85
	../include/vlc_renderer_discovery.h \
86
	../include/vlc_sout.h \
87
	../include/vlc_spu.h \
88 89
	../include/vlc_stream.h \
	../include/vlc_strings.h \
90
	../include/vlc_subpicture.h \
91
	../include/vlc_text_style.h \
92
	../include/vlc_threads.h \
93
	../include/vlc_tls.h \
94
	../include/vlc_url.h \
95 96
	../include/vlc_variables.h \
	../include/vlc_vlm.h \
97
	../include/vlc_video_splitter.h \
98
	../include/vlc_vout.h \
99
	../include/vlc_vout_display.h \
100
	../include/vlc_vout_osd.h \
101
	../include/vlc_vout_window.h \
102
	../include/vlc_xml.h \
103
	../include/vlc_xlib.h \
104
	$(NULL)
105
nodist_pluginsinclude_HEADERS = ../include/vlc_about.h
106

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

121
../include/vlc_about.h: Makefile.am $(top_srcdir)/COPYING $(top_srcdir)/THANKS $(top_srcdir)/AUTHORS
122 123 124 125 126 127 128
	$(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
129
	sed '/\$$Id:/d;s/"/\\"/g;s/<.*.> //;s/^.*$$/\"&\\n\"/' \
130 131 132
		"$(top_srcdir)/THANKS" && \
	echo ";" && \
	echo "static const char psz_authors[] =" && \
133
	sed '/\$$Id:/d;s/"/\\"/g;s/<.*.> //;s/^.*$$/\"&\\n\"/' \
134 135 136
		"$(top_srcdir)/AUTHORS" && \
	echo ";") >> "$@.tmp"
	$(AM_V_at)mv -f -- "$@.tmp" "$@"
137

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

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

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

150 151 152 153 154 155 156 157 158 159 160 161 162
##############################################################################
# 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/$@"

163 164 165 166
###############################################################################
# Building libvlc
###############################################################################

167
lib_LTLIBRARIES = libvlccore.la
168

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

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

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

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

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

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

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

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

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

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

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

493 494 495 496
SOURCES_libvlc_httpd = \
	network/httpd.c \
	$(NULL)

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

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

510 511 512 513
SOURCES_libvlc = \
	$(SOURCES_libvlc_common) \
	$(NULL)

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

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

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

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

543
TESTS = $(check_PROGRAMS) check_symbols
544 545 546 547 548 549 550

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
551 552
test_interrupt_SOURCES = test/interrupt.c
test_interrupt_LDADD = $(LDADD) $(LIBS_libvlccore) $(LIBPTHREAD)
553
test_md5_SOURCES = test/md5.c
554
test_picture_pool_SOURCES = test/picture_pool.c
555 556 557 558 559 560 561 562 563 564
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
565 566 567 568 569
###############################################################################
# GIT revision
###############################################################################

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

572 573 574 575
$(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
576

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

stamp-revision:
582
	$(AM_V_at)rm -f -- revision.tmp
583 584 585 586 587 588
	$(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 \
589 590
		rm -f -- revision.tmp; \
	else \
591 592 593
		mv -f -- revision.tmp $(srcdir)/revision.txt; \
	fi
#2>&1
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
594

595 596 597
###############################################################################
# Unit/regression test
###############################################################################
598

599
dist_check_SCRIPTS = check_headers check_symbols
600

601
check-local:
602
	for h in `echo $(pkginclude_HEADERS) | sed -e s,\.\./include/,,g`; \
603 604 605 606 607 608 609 610
	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
611
	$(SHELL) $(srcdir)/check_headers $(pluginsinclude_HEADERS)
612

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

.PHONY: FORCE