]> git.sesse.net Git - vlc/blob - Makefile.am
* reimplement EnableUTF8 without iconv
[vlc] / Makefile.am
1 ###############################################################################
2 # Automake targets and declarations
3 ###############################################################################
4
5 NULL =
6
7 # SUBDIRS stores the directories where a "make" is required when building
8 # something. DIST_SUBDIRS stores the directories where nothing is built but
9 # which have makefiles with distribution information.
10 #  - intl should come before modules and . because all the code uses gettext
11 #  - modules should come before . because vlc needs the builtins
12 #  - . should come before mozilla because the plugin needs libvlc_pic.a
13 #  - po should come before . because VLC.app needs the pofiles
14 #  - loader should come before modules because some plugins need it
15 SUBDIRS = intl loader modules po . mozilla activex share m4 doc
16 DIST_SUBDIRS = $(SUBDIRS) src debian ipkg lib
17
18 EXTRA_DIST = \
19         HACKING \
20         INSTALL.win32 \
21         vlc.exe.manifest \
22         MAINTAINERS \
23         README.MacOSX.rtf \
24         bootstrap \
25         src/extras/COPYING \
26         toolbox \
27         vlc-api.pl \
28         vlc-config.in.in \
29         vlc.spec \
30         vlc.spec.mdk \
31         vlc.win32.nsi \
32         $(NULL)
33
34 BUILT_SOURCES =
35 SUFFIXES = 
36
37 # Tell aclocal to use -I m4. Wonder if it really works.
38 ACLOCAL_AMFLAGS = -I m4
39
40 # XXX: these flags could be set in configure.ac, but we set them here
41 # because old versions of automake don't support them in configure.ac.
42 AUTOMAKE_OPTIONS = dist-bzip2 subdir-objects
43
44 ###############################################################################
45 # Headers
46 ###############################################################################
47
48 BUILT_SOURCES += \
49         stamp-api \
50         src/misc/modules_builtin.h \
51         $(NULL)
52
53 pkgincludedir = $(includedir)/vlc
54
55 dist_pkginclude_HEADERS = \
56         include/vlc/vlc.h \
57         include/vlc/aout.h \
58         include/vlc/vout.h \
59         include/vlc/sout.h \
60         include/vlc/decoder.h \
61         include/vlc/input.h \
62         include/vlc/intf.h \
63         include/vlc/control.h \
64         $(NULL)
65
66 noinst_HEADERS = $(HEADERS_include)
67
68 HEADERS_include = \
69         include/aout_internal.h \
70         include/audio_output.h \
71         include/beos_specific.h \
72         include/charset.h \
73         include/codecs.h \
74         include/configuration.h \
75         include/darwin_specific.h \
76         include/intf_eject.h \
77         include/iso_lang.h \
78         include/main.h \
79         include/mmx.h \
80         include/modules.h \
81         include/modules_inner.h \
82         include/mtime.h \
83         include/network.h \
84         include/osd.h \
85         include/os_specific.h \
86         include/snapshot.h \
87         include/stream_output.h \
88         include/variables.h \
89         include/video_output.h \
90         include/vlc_access.h \
91         include/vlc_acl.h \
92         include/vlc_bits.h \
93         include/vlc_block.h \
94         include/vlc_block_helper.h \
95         include/vlc_codec.h \
96         include/vlc_common.h \
97         include/vlc_config.h \
98         include/vlc_cpu.h \
99         include/vlc_demux.h \
100         include/vlc_error.h \
101         include/vlc_es.h \
102         include/vlc_es_out.h \
103         include/vlc_filter.h \
104         include/vlc_config_cat.h \
105         include/vlc_httpd.h \
106         include/vlc_tls.h \
107         include/vlc_md5.h \
108         include/vlc_image.h \
109         include/vlc_input.h \
110         include/vlc_interface.h \
111         include/vlc_keys.h \
112         include/vlc_messages.h \
113         include/vlc_meta.h \
114         include/vlc_objects.h \
115         include/vlc_playlist.h \
116         include/vlc_spu.h \
117         include/vlc_stream.h \
118         include/vlc_symbols.h \
119         include/vlc_threads_funcs.h \
120         include/vlc_threads.h \
121         include/vlc_video.h \
122         include/vlc_vlm.h \
123         include/vlc_vod.h \
124         include/vlc_xml.h \
125         include/vout_synchro.h \
126         include/win32_specific.h \
127         $(NULL)
128
129 src/misc/modules_builtin.h: Makefile src/misc/modules_builtin.h.in vlc-config
130         srcdir=$(srcdir) $(srcdir)/toolbox --update-includes
131         touch $@
132
133 # These dependencies are mandatory
134 $(SOURCES_libvlc): src/misc/modules_builtin.h $(LIB_intl)
135
136 ###############################################################################
137 # Optional libintl - FIXME, bad dependencies
138 ###############################################################################
139
140 intl/libintl.a: FORCE
141         cd $(top_builddir)/intl && $(MAKE) $(AM_MAKEFLAGS)
142
143 if BUILD_INTL
144 LIB_intl = intl/libintl.a
145 endif
146
147 ###############################################################################
148 # MacOS X project
149 ###############################################################################
150
151 EXTRA_DIST += \
152         extras/MacOSX/Resources/English.lproj/MainMenu.nib/classes.nib \
153         extras/MacOSX/Resources/English.lproj/MainMenu.nib/info.nib \
154         extras/MacOSX/Resources/English.lproj/MainMenu.nib/keyedobjects.nib \
155         extras/MacOSX/Resources/English.lproj/About.nib/classes.nib \
156         extras/MacOSX/Resources/English.lproj/About.nib/info.nib \
157         extras/MacOSX/Resources/English.lproj/About.nib/keyedobjects.nib \
158         extras/MacOSX/Resources/English.lproj/Open.nib/classes.nib \
159         extras/MacOSX/Resources/English.lproj/Open.nib/info.nib \
160         extras/MacOSX/Resources/English.lproj/Open.nib/keyedobjects.nib \
161         extras/MacOSX/Resources/English.lproj/Preferences.nib/classes.nib \
162         extras/MacOSX/Resources/English.lproj/Preferences.nib/info.nib \
163         extras/MacOSX/Resources/English.lproj/Preferences.nib/keyedobjects.nib \
164         extras/MacOSX/Resources/English.lproj/Wizard.nib/classes.nib \
165         extras/MacOSX/Resources/English.lproj/Wizard.nib/info.nib \
166         extras/MacOSX/Resources/English.lproj/Wizard.nib/keyedobjects.nib \
167         extras/MacOSX/Resources/English.lproj/InfoPlist.strings \
168         extras/MacOSX/Resources/a52.icns \
169         extras/MacOSX/Resources/aac.icns \
170         extras/MacOSX/Resources/asf.icns \
171         extras/MacOSX/Resources/asx.icns \
172         extras/MacOSX/Resources/avi.icns \
173         extras/MacOSX/Resources/bin.icns \
174         extras/MacOSX/Resources/cue.icns \
175         extras/MacOSX/Resources/dat.icns \
176         extras/MacOSX/Resources/divx.icns \
177         extras/MacOSX/Resources/dv.icns \
178         extras/MacOSX/Resources/generic.icns \
179         extras/MacOSX/Resources/m3u.icns \
180         extras/MacOSX/Resources/mov.icns \
181         extras/MacOSX/Resources/mp3.icns \
182         extras/MacOSX/Resources/mp4.icns \
183         extras/MacOSX/Resources/mpeg.icns \
184         extras/MacOSX/Resources/mpeg1.icns \
185         extras/MacOSX/Resources/mpeg2.icns \
186         extras/MacOSX/Resources/mpeg4.icns \
187         extras/MacOSX/Resources/mpg.icns \
188         extras/MacOSX/Resources/ogg.icns \
189         extras/MacOSX/Resources/ogm.icns \
190         extras/MacOSX/Resources/pls.icns \
191         extras/MacOSX/Resources/srt.icns \
192         extras/MacOSX/Resources/sub.icns \
193         extras/MacOSX/Resources/vlc.icns \
194         extras/MacOSX/Resources/vob.icns \
195         extras/MacOSX/Resources/wma.icns \
196         extras/MacOSX/Resources/wmv.icns \
197         extras/MacOSX/Resources/pause.png \
198         extras/MacOSX/Resources/pause_blue.png \
199         extras/MacOSX/Resources/play.png \
200         extras/MacOSX/Resources/play_blue.png \
201         extras/MacOSX/Resources/stop.png \
202         extras/MacOSX/Resources/stop_blue.png \
203         extras/MacOSX/Resources/display.png \
204         extras/MacOSX/Resources/display_slider.png \
205         extras/MacOSX/Resources/display_track.png \
206         extras/MacOSX/Resources/equalizerdrawer_active.png \
207         extras/MacOSX/Resources/equalizerdrawer_blue.png \
208         extras/MacOSX/Resources/fullscreen_active.png \
209         extras/MacOSX/Resources/fullscreen_blue.png \
210         extras/MacOSX/Resources/next_active.png \
211         extras/MacOSX/Resources/next_blue.png \
212         extras/MacOSX/Resources/playlistdrawer_active.png \
213         extras/MacOSX/Resources/playlistdrawer_blue.png \
214         extras/MacOSX/Resources/previous_active.png \
215         extras/MacOSX/Resources/previous_blue.png \
216         extras/MacOSX/Resources/skip_forward_active.png \
217         extras/MacOSX/Resources/skip_forward_blue.png \
218         extras/MacOSX/Resources/skip_previous_active.png \
219         extras/MacOSX/Resources/skip_previous_blue.png \
220         extras/MacOSX/Resources/volume_high.png \
221         extras/MacOSX/Resources/volume_low.png \
222         extras/MacOSX/Resources/volumeslider_blue.png \
223         extras/MacOSX/Resources/volumeslider_normal.png \
224         extras/MacOSX/Resources/volumetrack.png \
225         extras/MacOSX/Resources/about_bg.png \
226         extras/MacOSX/Resources/vlc.scriptSuite \
227         extras/MacOSX/Resources/vlc.scriptTerminology \
228         extras/MacOSX/Resources/README \
229         extras/MacOSX/vlc.pbproj/project.pbxproj \
230         extras/MacOSX/macosx-dmg \
231         $(NULL)
232
233 ###############################################################################
234 # MS Visual Studio and eMbedded Visual Studio projects
235 ###############################################################################
236
237 EXTRA_DIST += \
238         msvc/vlc.dsw \
239         msvc/libvlc.dsp.in \
240         msvc/plugins.dsp.in \
241         msvc/vlc.dsp.in \
242         msvc/config.h.in \
243         msvc/modules_builtin_msvc.h \
244         evc/vlc.vcw \
245         evc/libvlc.vcp.in \
246         evc/vlc.vcp.in \
247         evc/plugins.vcp.in \
248         evc/errno.h \
249         evc/config.h.in \
250         evc/modules_builtin_evc.h \
251         $(NULL)
252
253 dist-hook:
254         cd $(distdir) && srcdir=$(srcdir) $(srcdir)/toolbox --update-vc
255         distdir=$(distdir) srcdir=$(srcdir) $(srcdir)/toolbox --dist-contrib
256
257 ###############################################################################
258 # Building libvlc
259 ###############################################################################
260
261 bin_SCRIPTS = vlc-config
262 vlc-config: $(top_builddir)/config.status $(top_builddir)/vlc-config.in
263         cd $(top_builddir) && $(SHELL) ./config.status --file=$@
264         -cd $(top_builddir) && chmod 0755 $@
265
266 $(SOURCES): vlc-config
267
268 CLEANFILES = $(BUILT_SOURCES)
269
270 lib_LIBRARIES = lib/libvlc.a $(LIBRARIES_libvlc_pic)
271
272 lib_libvlc_a_SOURCES = $(SOURCES_libvlc)
273 lib_libvlc_a_CFLAGS = `$(VLC_CONFIG) --cflags vlc`
274 lib_libvlc_a_CXXFLAGS = `$(VLC_CONFIG) --cxxflags vlc`
275 lib_libvlc_a_OBJCFLAGS = `$(VLC_CONFIG) --objcflags vlc`
276
277 lib_libvlc_pic_a_SOURCES = $(SOURCES_libvlc)
278 lib_libvlc_pic_a_CFLAGS = `$(VLC_CONFIG) --cflags vlc pic`
279 lib_libvlc_pic_a_CXXFLAGS = `$(VLC_CONFIG) --cxxflags vlc pic`
280 lib_libvlc_pic_a_OBJCFLAGS = `$(VLC_CONFIG) --objcflags vlc pic`
281
282 if HAVE_BEOS
283 OPT_SOURCES_libvlc_beos = $(SOURCES_libvlc_beos)
284 endif
285 if HAVE_DARWIN
286 OPT_SOURCES_libvlc_darwin = $(SOURCES_libvlc_darwin)
287 endif
288 if HAVE_WIN32
289 OPT_SOURCES_libvlc_win32 = $(SOURCES_libvlc_win32)
290 endif
291 if HAVE_WINCE
292 OPT_SOURCES_libvlc_win32 = $(SOURCES_libvlc_win32)
293 endif
294 if BUILD_DIRENT
295 OPT_SOURCES_libvlc_dirent = $(SOURCES_libvlc_dirent)
296 endif
297 if BUILD_GETOPT
298 OPT_SOURCES_libvlc_getopt = $(SOURCES_libvlc_getopt)
299 endif
300 if BUILD_MOZILLA
301 if !HAVE_WIN32
302 LIBRARIES_libvlc_pic = lib/libvlc_pic.a
303 endif
304 endif
305
306 EXTRA_DIST += \
307         $(SOURCES_libvlc_beos) \
308         $(SOURCES_libvlc_darwin) \
309         $(SOURCES_libvlc_win32) \
310         $(SOURCES_libvlc_dirent) \
311         $(SOURCES_libvlc_getopt) \
312         $(NULL)
313
314 SOURCES_libvlc_beos = \
315         src/misc/beos_specific.cpp \
316         $(NULL)
317
318 SOURCES_libvlc_darwin = \
319         src/misc/darwin_specific.m \
320         $(NULL)
321
322 SOURCES_libvlc_win32 = \
323         src/misc/win32_specific.c \
324         $(NULL)
325
326 SOURCES_libvlc_dirent = \
327         src/extras/dirent.c \
328         $(NULL)
329
330 SOURCES_libvlc_getopt = \
331         src/extras/getopt.c \
332         src/extras/getopt.h \
333         src/extras/getopt1.c \
334         $(NULL)
335
336 SOURCES_libvlc_common = \
337         src/libvlc.c \
338         src/libvlc.h \
339         src/interface/interface.c \
340         src/interface/intf_eject.c \
341         src/playlist/playlist.c \
342         src/playlist/sort.c \
343         src/playlist/loadsave.c \
344         src/playlist/view.c \
345         src/playlist/item.c \
346         src/playlist/item-ext.c \
347         src/playlist/services_discovery.c \
348         src/input/access.c \
349         src/input/clock.c \
350         src/input/control.c \
351         src/input/decoder.c \
352         src/input/demux.c \
353         src/input/es_out.c \
354         src/input/input.c \
355         src/input/input_internal.h \
356         src/input/stream.c \
357         src/input/mem_stream.c \
358         src/input/subtitles.c \
359         src/input/var.c \
360         src/video_output/video_output.c \
361         src/video_output/vout_pictures.c \
362         src/video_output/vout_pictures.h \
363         src/video_output/video_text.c \
364         src/video_output/video_widgets.c \
365         src/video_output/vout_subpictures.c \
366         src/video_output/vout_synchro.c \
367         src/video_output/vout_intf.c \
368         src/audio_output/common.c \
369         src/audio_output/dec.c \
370         src/audio_output/filters.c \
371         src/audio_output/input.c \
372         src/audio_output/mixer.c \
373         src/audio_output/output.c \
374         src/audio_output/intf.c \
375         src/stream_output/stream_output.c \
376         src/stream_output/announce.c \
377         src/stream_output/sap.c \
378         src/stream_output/acl.c \
379         src/misc/charset.c \
380         src/misc/httpd.c \
381         src/misc/tls.c \
382         src/misc/md5.c \
383         src/misc/mtime.c \
384         src/misc/block.c \
385         src/misc/modules.c \
386         src/misc/threads.c \
387         src/misc/unicode.c \
388         src/misc/cpu.c \
389         src/misc/configuration.c \
390         src/misc/image.c \
391         src/misc/iso_lang.c \
392         src/misc/iso-639_def.h \
393         src/misc/messages.c \
394         src/misc/objects.c \
395         src/misc/variables.c \
396         src/misc/error.c \
397         src/misc/net.c \
398         src/misc/getaddrinfo.c \
399         src/misc/vlm.c \
400         src/misc/xml.c \
401         src/extras/libc.c \
402         src/control/core.c \
403         src/control/util.c \
404         src/control/audio_video.c \
405         $(NULL)
406
407 SOURCES_libvlc = \
408         $(SOURCES_libvlc_common) \
409         $(OPT_SOURCES_libvlc_beos) \
410         $(OPT_SOURCES_libvlc_darwin) \
411         $(OPT_SOURCES_libvlc_win32) \
412         $(OPT_SOURCES_libvlc_dirent) \
413         $(OPT_SOURCES_libvlc_getopt) \
414         $(NULL)
415
416 ###############################################################################
417 # Building vlc
418 ###############################################################################
419
420 bin_PROGRAMS = vlc
421
422 vlc_SOURCES = src/vlc.c
423
424 # Work around a bug in the arm-wince-pe linker
425 if HAVE_WINCE
426 vlc_WORKAROUNDLDFLAGS = lib/libvlc.a
427 endif
428
429 vlc_LDFLAGS = `$(VLC_CONFIG) --libs vlc builtin` $(vlc_WORKAROUNDLDFLAGS)
430 vlc_LDADD = lib/libvlc.a $(DATA_win32_rc) $(LIB_intl)
431 vlc_CFLAGS = `$(VLC_CONFIG) --cflags vlc`
432
433 # We use DEPENDENCIES_vlc instead of vlc_DEPENDENCIES because of an
434 # old automake-1.5 bug (automake/279).
435 DEPENDENCIES_vlc = lib/libvlc.a $(DATA_win32_rc) $(LIB_intl)
436
437 vlc$(EXEEXT): $(vlc_OBJECTS) $(DEPENDENCIES_vlc) stamp-builtin
438         @rm -f $(top_builddir)/vlc$(EXEEXT)
439         @case `$(VLC_CONFIG) --linkage vlc builtin` in \
440           c++) echo $(CXXLINK) $(vlc_OBJECTS) $(vlc_LDFLAGS) $(LIBS) ; $(CXXLINK) $(vlc_OBJECTS) $(vlc_LDADD) $(vlc_LDFLAGS) $(LIBS) $(vlc_LDADD) ;; \
441           objc) echo $(OBJCLINK) $(vlc_OBJECTS) $(vlc_LDFLAGS) $(LIBS) ; $(OBJCLINK) $(vlc_OBJECTS) $(vlc_LDADD) $(vlc_LDFLAGS) $(LIBS) $(vlc_LDADD) ;; \
442           c|*) echo $(LINK) $(vlc_OBJECTS) $(vlc_LDFLAGS) $(LIBS) ; $(LINK) $(vlc_OBJECTS) $(vlc_LDADD) $(vlc_LDFLAGS) $(LIBS) $(vlc_LDADD) ;; \
443         esac
444
445 if HAVE_BEOS
446 noinst_DATA = vlc-bundle
447 vlc-bundle: vlc
448         rm -Rf $(top_builddir)/vlc-bundle ; mkdir -p $(top_builddir)/vlc-bundle
449         cp $(top_builddir)/vlc $(top_builddir)/vlc-bundle/
450         xres -o $(top_builddir)/vlc-bundle/vlc $(srcdir)/share/vlc_beos.rsrc
451         for i in "" `$(VLC_CONFIG) --target plugin` ; do \
452           if test -n "$$i" ; then \
453             mkdir -p $(top_builddir)/vlc-bundle/plugins ; \
454             cp "$$i$(LIBEXT)" $(top_builddir)/vlc-bundle/plugins/ ; \
455           fi ; \
456         done
457         if test -d $(top_builddir)/extras/contrib/vlc-lib ; then \
458           mkdir -p $(top_builddir)/vlc-bundle/lib ; \
459           for i in $(top_builddir)/extras/contrib/vlc-lib/*.so ; do \
460             cp $$i $(top_builddir)/vlc-bundle/lib/ ; \
461           done ; \
462         fi
463         for i in $(ALL_LINGUAS); do \
464           mkdir -p "$(top_builddir)/vlc-bundle/locale/$$i/LC_MESSAGES" ; \
465           cp "$(top_builddir)/po/$$i.gmo" \
466             "$(top_builddir)/vlc-bundle/locale/$$i/LC_MESSAGES/vlc.mo" || true ; \
467         done
468         find $(top_builddir)/vlc-bundle -type f -exec mimeset -f "{}" \;
469 endif
470
471 # Install the modules and the symlinks
472 install-exec-local:
473         for i in "" `$(VLC_CONFIG) --target plugin` ; do if test -n "$$i" ; then \
474           echo $(INSTALL) -m 755 "$$i$(LIBEXT)" "$(DESTDIR)$(libdir)/vlc/`echo $$i | sed -e 's,.*modules/\([^/]*\).*,\1,'`" ; \
475           $(INSTALL) -m 755 "$$i$(LIBEXT)" "$(DESTDIR)$(libdir)/vlc/`echo $$i | sed -e 's,.*modules/\([^/]*\).*,\1,'`" ; \
476         fi ; done
477         for i in "" `$(VLC_CONFIG) --target builtin` ; do if test -n "$$i" ; then \
478           echo $(INSTALL) -m 644 "$$i" "$(DESTDIR)$(libdir)/vlc" ; \
479           $(INSTALL) -m 644 "$$i" "$(DESTDIR)$(libdir)/vlc" ; \
480         fi ; done
481 if BUILD_MOZILLA
482         for i in "" `$(VLC_CONFIG) --target builtin pic` ; do if test -n "$$i" ; then \
483           echo $(INSTALL) -m 644 "$$i" "$(DESTDIR)$(libdir)/vlc" ; \
484           $(INSTALL) -m 644 "$$i" "$(DESTDIR)$(libdir)/vlc" ; \
485         fi ; done
486 endif
487         for i in "" $(ALIASES) ; do if test -n "$$i" ; then \
488           rm -f "$(DESTDIR)$(bindir)/$$i" && \
489           ln -s vlc "$(DESTDIR)$(bindir)/$$i" ; \
490         fi ; done
491
492 # the opposite of install-{data,exec}-local
493 uninstall-local:
494         @for i in "" `$(VLC_CONFIG) --target plugin` ; do if test -n "$$i" ; then \
495           echo rm -f "$(DESTDIR)$(libdir)/vlc/`echo $$i | sed -e 's,.*modules/\([^/]*\).*,\1,'`/$$(basename $$i$(LIBEXT))" ; \
496           rm -f "$(DESTDIR)$(libdir)/vlc/`echo $$i | sed -e 's,.*modules/\([^/]*\).*,\1,'`/$$(basename $$i$(LIBEXT))" ; \
497         fi ; done
498         @for i in "" `$(VLC_CONFIG) --target builtin` ; do if test -n "$$i" ; then \
499           echo rm -f "$(DESTDIR)$(libdir)/vlc/$$(basename $$i)" ; \
500           rm -f "$(DESTDIR)$(libdir)/vlc/$$(basename $$i)" ; \
501         fi ; done
502 if BUILD_MOZILLA
503         @for i in "" `$(VLC_CONFIG) --target builtin pic` ; do if test -n "$$i" ; then \
504           echo rm -f "$$i" "$(DESTDIR)$(libdir)/vlc/$$(basename $$i)" ; \
505           rm -f "$$i" "$(DESTDIR)$(libdir)/vlc/$$(basename $$i)" ; \
506         fi ; done
507 endif
508         for i in "" $(ALIASES) ; do if test -n "$$i" ; then \
509           rm -f "$(DESTDIR)$(bindir)/$$i" ; \
510         fi ; done
511
512 if HAVE_DARWIN
513 # Create the MacOS X app
514 vlc_app_DATA = VLC.app
515 vlc_appdir = $(bindir)
516 # VLC-release.app is the old VLC.app target
517 VLC-release.app: vlc
518         @if test -e "$(top_builddir)/tmp"; then \
519           echo "Error: please remove $(top_builddir)/tmp, it is in the way"; \
520           false; \
521         else \
522           echo "OK."; mkdir -p "$(top_builddir)/tmp/extras"; \
523         fi
524         rm -Rf $(top_builddir)/VLC-release.app
525         cp -r $(srcdir)/extras/MacOSX $(top_builddir)/tmp/extras
526         for i in AUTHORS COPYING README.MacOSX.rtf THANKS; do \
527           cp "$(srcdir)/$$i" $(top_builddir)/tmp; \
528         done
529         mkdir -p $(top_builddir)/tmp/modules/audio_output
530         cp $(srcdir)/modules/audio_output/coreaudio.c \
531            $(top_builddir)/tmp/modules/audio_output/coreaudio.c
532         mkdir -p $(top_builddir)/tmp/modules/gui/macosx
533         for i in \
534             about.h \
535             about.m \
536             applescript.h \
537             applescript.m \
538             controls.h \
539             controls.m \
540             equalizer.h \
541             equalizer.m \
542             intf.h \
543             intf.m \
544             macosx.m \
545             misc.h \
546             misc.m \
547             open.h \
548             open.m \
549             output.h \
550             output.m \
551             playlist.h \
552             playlist.m \
553             playlistinfo.h \
554             playlistinfo.m \
555             prefs_widgets.h \
556             prefs_widgets.m \
557             prefs.h \
558             prefs.m \
559             vout.h \
560             voutqt.m \
561             voutgl.m \
562             wizard.h \
563             wizard.m \
564             vout.m; do \
565           cp "$(srcdir)/modules/gui/macosx/$$i" \
566              $(top_builddir)/tmp/modules/gui/macosx; \
567         done
568         case $(target_triplet) in \
569           *darwin6*) cd $(top_builddir)/tmp/extras/MacOSX && pbxbuild -target vlc | grep -v '^\([ \t]\|$$\)'; \
570             cd ../../../; \
571             cp -r $(top_builddir)/tmp/extras/MacOSX/build/VLC.bundle \
572                   $(top_builddir)/VLC-release.app;; \
573           *darwin7*) cd $(top_builddir)/tmp/extras/MacOSX && xcodebuild -target vlc | grep -v '^\([ \t]\|$$\)'; \
574             cd ../../../; \
575             cp -r $(top_builddir)/tmp/extras/MacOSX/build/VLC.bundle \
576                   $(top_builddir)/VLC-release.app;; \
577           *darwin8*) cd $(top_builddir)/tmp/extras/MacOSX && xcodebuild -target vlc | grep -v '^\([ \t]\|$$\)'; \
578             cd ../../../; \
579             cp -r $(top_builddir)/tmp/extras/MacOSX/build/Default/VLC.bundle \
580                   $(top_builddir)/VLC-release.app;; \
581         esac
582         rm -Rf $(top_builddir)/tmp
583         $(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS
584         $(INSTALL) $(top_builddir)/vlc \
585                    $(top_builddir)/VLC-release.app/Contents/MacOS/VLC
586         ln -sf ./VLC $(top_builddir)/VLC-release.app/Contents/MacOS/clivlc
587         $(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS/modules
588         for i in "" `$(VLC_CONFIG) --target plugin` ; do \
589           if test -n "$$i" ; \
590             then $(INSTALL) "$$i$(LIBEXT)" \
591                            "$(top_builddir)/VLC-release.app/Contents/MacOS/modules" ; \
592           fi ; done
593         if test -d $(top_builddir)/extras/contrib/vlc-lib; then \
594           mkdir -p $(top_builddir)/VLC-release.app/Contents/MacOS/lib ; \
595           for i in $(top_builddir)/extras/contrib/vlc-lib/*.dylib ; do \
596             $(INSTALL) -m 644 $${i} $(top_builddir)/VLC-release.app/Contents/MacOS/lib/vlc_`basename $${i}` ; \
597           done ; \
598         fi
599         $(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS/share
600         $(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS/share/http
601         for i in $(srcdir)/share/http/* ; do \
602           $(INSTALL) -m 644 $${i} $(top_builddir)/VLC-release.app/Contents/MacOS/share/http/`basename $${i}` ; \
603         done ; \
604         $(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS/share/http/vlm
605         for i in $(srcdir)/share/http/vlm/* ; do \
606           $(INSTALL) -m 644 $${i} $(top_builddir)/VLC-release.app/Contents/MacOS/share/http/vlm/`basename $${i}` ; \
607         done ; \
608         $(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS/share/http/admin
609         for i in $(srcdir)/share/http/admin/* ; do \
610           $(INSTALL) -m 644 $${i} $(top_builddir)/VLC-release.app/Contents/MacOS/share/http/admin/`basename $${i}` ; \
611         done ; \
612         $(INSTALL) -m 644 $(srcdir)/share/http/admin/.access $(top_builddir)/VLC-release.app/Contents/MacOS/share/http/admin/.access
613         $(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS/locale
614         for i in $(ALL_LINGUAS); do \
615           mkdir -p $(top_builddir)/VLC-release.app/Contents/MacOS/locale/$${i}/LC_MESSAGES ; \
616           cp $(srcdir)/po/$${i}.gmo $(top_builddir)/VLC-release.app/Contents/MacOS/locale/$${i}/LC_MESSAGES/vlc.mo || true ; \
617           mkdir -p $(top_builddir)/VLC-release.app/Contents/Resources/$${i}.lproj ; \
618           ln -sf ../English.lproj/InfoPlist.strings \
619               $(top_builddir)/VLC-release.app/Contents/Resources/$${i}.lproj ; \
620           ln -sf ../English.lproj/MainMenu.nib \
621               $(top_builddir)/VLC-release.app/Contents/Resources/$${i}.lproj ; \
622           ln -sf ../English.lproj/vlc.scriptTerminology \
623               $(top_builddir)/VLC-release.app/Contents/Resources/$${i}.lproj ; \
624         done
625         printf "APPLVLC#" >| $(top_builddir)/VLC-release.app/Contents/PkgInfo
626
627 VLC.app: vlc
628         @if test -e "$(top_builddir)/tmp"; then \
629           echo "Error: please remove $(top_builddir)/tmp, it is in the way"; \
630           false; \
631         else \
632           echo "OK."; mkdir -p "$(top_builddir)/tmp/extras"; \
633         fi
634         rm -Rf $(top_builddir)/VLC.app
635         cp -r $(srcdir)/extras/MacOSX $(top_builddir)/tmp/extras
636         for i in AUTHORS COPYING README.MacOSX.rtf THANKS; do \
637           cp "$(srcdir)/$$i" $(top_builddir)/tmp; \
638         done
639         mkdir -p $(top_builddir)/tmp/modules/audio_output
640         cp $(srcdir)/modules/audio_output/coreaudio.c \
641            $(top_builddir)/tmp/modules/audio_output/coreaudio.c
642         mkdir -p $(top_builddir)/tmp/modules/gui/macosx
643         for i in \
644             about.h \
645             about.m \
646             applescript.h \
647             applescript.m \
648             controls.h \
649             controls.m \
650             equalizer.h \
651             equalizer.m \
652             intf.h \
653             intf.m \
654             macosx.m \
655             misc.h \
656             misc.m \
657             open.h \
658             open.m \
659             output.h \
660             output.m \
661             playlist.h \
662             playlist.m \
663             playlistinfo.h \
664             playlistinfo.m \
665             prefs_widgets.h \
666             prefs_widgets.m \
667             prefs.h \
668             prefs.m \
669             vout.h \
670             voutqt.m \
671             voutgl.m \
672             wizard.h \
673             wizard.m \
674             vout.m; do \
675           cp "$(srcdir)/modules/gui/macosx/$$i" \
676              $(top_builddir)/tmp/modules/gui/macosx; \
677         done
678         case $(target_triplet) in \
679           *darwin6*) cd $(top_builddir)/tmp/extras/MacOSX && pbxbuild -target vlc | grep -v '^\([ \t]\|$$\)'; \
680             cd ../../../; \
681             cp -r $(top_builddir)/tmp/extras/MacOSX/build/VLC.bundle \
682                   $(top_builddir)/VLC.app;; \
683           *darwin7*) cd $(top_builddir)/tmp/extras/MacOSX && xcodebuild -target vlc | grep -v '^\([ \t]\|$$\)'; \
684             cd ../../../; \
685             cp -r $(top_builddir)/tmp/extras/MacOSX/build/VLC.bundle \
686                   $(top_builddir)/VLC.app;; \
687           *darwin8*) cd $(top_builddir)/tmp/extras/MacOSX && xcodebuild -target vlc | grep -v '^\([ \t]\|$$\)'; \
688             cd ../../../; \
689             cp -r $(top_builddir)/tmp/extras/MacOSX/build/Default/VLC.bundle \
690                   $(top_builddir)/VLC.app;; \
691         esac
692         rm -Rf $(top_builddir)/tmp
693         $(INSTALL) -d $(top_builddir)/VLC.app/Contents/MacOS
694         $(INSTALL) $(top_builddir)/vlc \
695                    $(top_builddir)/VLC.app/Contents/MacOS/VLC
696         ln -sf ./VLC $(top_builddir)/VLC.app/Contents/MacOS/clivlc
697         $(INSTALL) -d $(top_builddir)/VLC.app/Contents/MacOS/modules
698         for i in "" `$(VLC_CONFIG) --target plugin` ; do \
699           if test -n "$$i" ; \
700             then ln -sfn "`pwd`/$$i$(LIBEXT)" \
701                            "$(top_builddir)/VLC.app/Contents/MacOS/modules" ; \
702           fi ; done
703         if test -d $(top_builddir)/extras/contrib/vlc-lib; then \
704           mkdir -p $(top_builddir)/VLC.app/Contents/MacOS/lib ; \
705           for i in $(top_builddir)/extras/contrib/vlc-lib/*.dylib ; do \
706             ln -sfn `pwd`/$${i} $(top_builddir)/VLC.app/Contents/MacOS/lib/vlc_`basename $${i}` ; \
707           done ; \
708         fi
709         ln -sfn `pwd`/share $(top_builddir)/VLC.app/Contents/MacOS/
710         $(INSTALL) -d $(top_builddir)/VLC.app/Contents/MacOS/locale
711         for i in $(ALL_LINGUAS); do \
712           mkdir -p $(top_builddir)/VLC.app/Contents/MacOS/locale/$${i}/LC_MESSAGES ; \
713           ln -sfn `pwd`/po/$${i}.gmo $(top_builddir)/VLC.app/Contents/MacOS/locale/$${i}/LC_MESSAGES/vlc.mo || true ; \
714           mkdir -p $(top_builddir)/VLC.app/Contents/Resources/$${i}.lproj ; \
715           ln -sf ../English.lproj/InfoPlist.strings \
716               $(top_builddir)/VLC.app/Contents/Resources/$${i}.lproj ; \
717           ln -sf ../English.lproj/MainMenu.nib \
718               $(top_builddir)/VLC.app/Contents/Resources/$${i}.lproj ; \
719         done
720         printf "APPLVLC#" >| $(top_builddir)/VLC.app/Contents/PkgInfo
721 endif
722
723 if HAVE_WIN32
724 DATA_win32_rc = $(noinst_share_vlc_win32_rc_DATA)
725 noinst_share_vlc_win32_rc_DATA = share/vlc_win32_rc.$(OBJEXT)
726 noinst_share_vlc_win32_rcdir = $(libdir)
727 share/vlc_win32_rc.$(OBJEXT): share/vlc_win32_rc.rc
728         $(WINDRES) -DVERSION=$(VERSION) -DVERSION_NUMBER=`echo $(VERSION).0.0.0 | sed 's/\([0-9]*\)[^.]*\.*\([0-9]*\)[^.]*\.*\([0-9]*\)[^.]*\.*\([0-9]*\).*/\1,\2,\3,\4/'` --include-dir $(srcdir)/share -i $< -o $@
729 endif
730
731
732 ###############################################################################
733 # Building specific source packages
734 ###############################################################################
735
736 dist-woody: distdir
737         $(remove_distdir_woody)
738         mv $(distdir) $(PACKAGE)-woody-$(VERSION)
739         $(srcdir)/toolbox --make-woody $(PACKAGE)-woody-$(VERSION)
740         $(AMTAR) chof - $(PACKAGE)-woody-$(VERSION) \
741           | GZIP=$(GZIP_ENV) gzip -c >$(PACKAGE)-woody-$(VERSION).tar.gz
742         $(remove_distdir_woody)
743
744 remove_distdir_woody = \
745   { test ! -d $(PACKAGE)-woody-$(VERSION) \
746     || { find $(PACKAGE)-woody-$(VERSION) -type d ! -perm -200 \
747            -exec chmod u+w {} ';' \
748          && rm -fr $(PACKAGE)-woody-$(VERSION); }; }
749
750 ###############################################################################
751 # Building architecture-specific binary packages
752 ###############################################################################
753
754 # XXX: this rule is probably only useful to you if you have exactly
755 # the same setup as me. Contact sam@zoy.org if you need to use it.
756 #
757 package-win32-base:
758 # Check that tmp isn't in the way
759         @if test -e "$(top_builddir)/vlc-${VERSION}"; then \
760           echo "Error: please remove $(top_builddir)/vlc-${VERSION}, it is in the way"; \
761           false; \
762         else \
763           echo "OK."; mkdir -p "$(top_builddir)/vlc-${VERSION}"; \
764         fi
765
766 # Copy relevant files
767         cp "$(srcdir)/vlc.win32.nsi" "$(top_builddir)/vlc-${VERSION}/"
768         cp "$(top_builddir)/vlc$(EXEEXT)" "$(top_builddir)/vlc-${VERSION}/"
769         cp "$(top_srcdir)/vlc.exe.manifest" "$(top_builddir)/vlc-${VERSION}/"
770         $(STRIP) "$(top_builddir)/vlc-${VERSION}/vlc$(EXEEXT)"
771
772         for file in AUTHORS MAINTAINERS THANKS NEWS COPYING README ; \
773           do sed 's/@/_AT_/' < "$(srcdir)/$$file" > "$(top_builddir)/vlc-${VERSION}/$${file}.txt" ; \
774           unix2dos "$(top_builddir)/vlc-${VERSION}/$${file}.txt" ; done
775
776         mkdir -p "$(top_builddir)/vlc-${VERSION}/plugins"
777         for i in "" `$(VLC_CONFIG) --target plugin` ; do \
778           if test -n "$$i" ; then \
779             $(INSTALL) "$(top_builddir)/$$i$(LIBEXT)" \
780             "$(top_builddir)/vlc-${VERSION}/plugins/" ; \
781           fi ; done
782
783         for i in "" $(top_builddir)/vlc-${VERSION}/plugins/*$(LIBEXT) ; \
784           do if test -n "$$i" ; then $(STRIP) "$$i" ; fi ; done
785
786         mkdir $(top_builddir)/vlc-${VERSION}/locale
787         for i in $(ALL_LINGUAS); do \
788           mkdir -p "$(top_builddir)/vlc-${VERSION}/locale/$${i}/LC_MESSAGES" ; \
789           cp "$(srcdir)/po/$${i}.gmo" \
790             "$(top_builddir)/vlc-${VERSION}/locale/$${i}/LC_MESSAGES/vlc.mo" \
791             || true ; \
792         done
793
794         mkdir -p $(top_builddir)/vlc-${VERSION}/skins/fonts
795         for i in $(srcdir)/share/skins2/fonts/*.*; do \
796           cp $$i $(top_builddir)/vlc-${VERSION}/skins/fonts/ || true ; \
797         done
798         for i in $(srcdir)/share/skins2/*.*; do \
799           cp $$i $(top_builddir)/vlc-${VERSION}/skins/ || true ; \
800         done
801
802         mkdir -p "$(top_builddir)/vlc-${VERSION}/http/admin"
803         mkdir -p "$(top_builddir)/vlc-${VERSION}/http/vlm"
804         cp $(srcdir)/share/http/*.html $(top_builddir)/vlc-${VERSION}/http/ ;
805         unix2dos $(top_builddir)/vlc-${VERSION}/http/*.html ;
806         cp $(srcdir)/share/http/*.css $(top_builddir)/vlc-${VERSION}/http/ ;
807         unix2dos $(top_builddir)/vlc-${VERSION}/http/*.css ;
808         cp $(srcdir)/share/http/*.png $(top_builddir)/vlc-${VERSION}/http/
809         cp $(srcdir)/share/http/*.ico $(top_builddir)/vlc-${VERSION}/http/ ;
810         cp $(srcdir)/share/http/admin/*.html \
811            $(top_builddir)/vlc-${VERSION}/http/admin/ ;
812         unix2dos $(top_builddir)/vlc-${VERSION}/http/admin/*.html ;
813         cp $(srcdir)/share/http/admin/dboxfiles.html \
814            $(top_builddir)/vlc-${VERSION}/http/admin/ ;
815         cp $(srcdir)/share/http/admin/.access \
816            $(top_builddir)/vlc-${VERSION}/http/admin/ ;
817         unix2dos $(top_builddir)/vlc-${VERSION}/http/admin/.access ;
818         cp $(srcdir)/share/http/vlm/*.html \
819            $(top_builddir)/vlc-${VERSION}/http/vlm/ ;
820         unix2dos $(top_builddir)/vlc-${VERSION}/http/vlm/*.html ;
821
822         cp $(srcdir)/share/vlc48x48new.ico $(top_builddir)/vlc-${VERSION}/ ;
823
824         mkdir -p "$(top_builddir)/vlc-${VERSION}/mozilla"
825 if BUILD_MOZILLA
826         cp $(top_builddir)/mozilla/*$(LIBEXT) $(top_builddir)/vlc-${VERSION}/mozilla/ ;
827         $(STRIP) $(top_builddir)/vlc-${VERSION}/mozilla/*$(LIBEXT);
828         cp $(top_builddir)/mozilla/vlcintf.xpt  $(top_builddir)/vlc-${VERSION}/mozilla/ ;
829 endif
830
831         mkdir -p "$(top_builddir)/vlc-${VERSION}/activex"
832 if BUILD_ACTIVEX
833         cp $(srcdir)/activex/README.TXT  $(top_builddir)/vlc-${VERSION}/activex/ ;
834         cp $(srcdir)/activex/test.html  $(top_builddir)/vlc-${VERSION}/activex/ ;
835         unix2dos $(top_builddir)/vlc-${VERSION}/activex/* ;
836
837         cp $(top_builddir)/activex/*$(LIBEXT) $(top_builddir)/vlc-${VERSION}/activex/ ;
838         $(STRIP) $(top_builddir)/vlc-${VERSION}/activex/*$(LIBEXT);
839 endif
840 # Rebase all those DLLs to speed up loading (need cygwin rebase)
841         if [ -x rebase ]; then \
842                 find $(top_builddir)/vlc-${VERSION} -type f -name '*.dll' -print | rebase -b 0x70000000 -T -; \
843         fi
844
845 package-win32-base-exe:
846 # Create package
847         wine C:/Program\ Files/NSIS/makensis.exe \
848              /DVERSION=${VERSION} $(top_builddir)/vlc-${VERSION}/vlc.win32.nsi
849
850 package-win32-base-exe-cygwin:
851 # Create package
852         C:/Program\ Files/NSIS/makensis.exe \
853              /DVERSION=${VERSION} $(top_builddir)/vlc-${VERSION}/vlc.win32.nsi
854
855 package-win32-base-exe-linux:
856 # Create package
857         makensis -DVERSION=${VERSION} $(top_builddir)/vlc-${VERSION}/vlc.win32.nsi
858
859 package-win32-base-zip:
860 # Create package 
861         zip -r vlc-${VERSION}-win32.zip vlc-${VERSION}
862
863 package-win32-exe: package-win32-base package-win32-base-exe
864 # Clean up
865         rm -Rf $(top_builddir)/vlc-${VERSION}
866
867 package-win32-exe-linux: package-win32-base package-win32-base-exe-linux
868 # Clean up
869         rm -Rf $(top_builddir)/vlc-${VERSION}
870
871 package-win32-zip: package-win32-base package-win32-base-zip
872 # Clean up
873         rm -Rf $(top_builddir)/vlc-${VERSION}
874
875 package-win32: package-win32-base package-win32-base-exe package-win32-base-zip
876 # Clean up
877         rm -Rf $(top_builddir)/vlc-${VERSION}
878
879 package-beos:
880 # Check that tmp isn't in the way
881         @if test -e $(srcdir)/tmp; then \
882           echo "Error: please remove $(srcdir)/tmp, it is in the way"; \
883           false ; \
884         else \
885           echo "OK." ; mkdir $(srcdir)/tmp ; \
886         fi
887
888 # Copy relevant files
889         mkdir -p $(srcdir)/tmp/vlc ;
890         cd $(srcdir) && cp -R vlc-bundle/* AUTHORS COPYING ChangeLog README \
891           THANKS NEWS tmp/vlc/ ;
892
893 # Create debug package
894         xres -o $(srcdir)/tmp/vlc/vlc $(srcdir)/share/vlc_beos.rsrc ;
895         find $(srcdir)/tmp/vlc -exec mimeset -f {} \; ;
896         mv $(srcdir)/tmp/vlc $(srcdir)/tmp/vlc-${VERSION} ;
897         (cd $(srcdir)/tmp ; zip -9 -r vlc-${VERSION}-BeOS-debug.zip vlc-${VERSION} )
898         mv $(srcdir)/tmp/vlc-${VERSION}-BeOS-debug.zip $(srcdir)/ ;
899         mv $(srcdir)/tmp/vlc-${VERSION} $(srcdir)/tmp/vlc ;
900
901 # Create normal package
902         $(STRIP) --strip-debug --strip-unneeded $(srcdir)/tmp/vlc/vlc ;
903         find $(srcdir)/tmp/vlc -name 'lib*.so' -exec $(STRIP) \
904           --strip-debug --strip-unneeded "{}" \; ;
905         xres -o $(srcdir)/tmp/vlc/vlc $(srcdir)/share/vlc_beos.rsrc ;
906         find $(srcdir)/tmp/vlc -exec mimeset -f {} \; ;
907         mv $(srcdir)/tmp/vlc $(srcdir)/tmp/vlc-${VERSION} ;
908         (cd $(srcdir)/tmp ; zip -9 -r vlc-${VERSION}-BeOS.zip vlc-${VERSION} )
909         mv $(srcdir)/tmp/vlc-${VERSION}-BeOS.zip $(srcdir)/ ;
910
911 # Clean up
912         rm -Rf $(srcdir)/tmp ;
913
914 package-macosx:
915 # Check that tmp isn't in the way
916         @if test -e "$(top_builddir)/tmp"; then \
917           echo "Error: please remove $(top_builddir)/tmp, it is in the way"; \
918           false; \
919         else \
920           echo "OK."; mkdir -p "$(top_builddir)/tmp"; \
921         fi
922
923 # Copy relevant files 
924         cp -R "$(top_builddir)/VLC-release.app" "$(top_builddir)/tmp/VLC.app"
925         cd "$(srcdir)" && cp AUTHORS COPYING ChangeLog README README.MacOSX.rtf THANKS NEWS $(top_builddir)/tmp/
926
927 # Create disk image 
928         $(srcdir)/extras/MacOSX/macosx-dmg "vlc-${VERSION}" $(top_builddir)/tmp
929
930 # Clean up
931         rm -Rf $(top_builddir)/tmp
932
933 package-translations:
934         @if test -e "$(srcdir)/vlc-translations-${VERSION}"; then \
935           echo "Error: please remove $(srcdir)/vlc-translations-${VERSION}, it is in the way"; \
936           false; \
937         else \
938           echo "OK."; mkdir -p "$(srcdir)/vlc-translations-${VERSION}"; \
939         fi
940 # Copy translations
941         for i in $(ALL_LINGUAS); do \
942           cp "$(srcdir)/po/$${i}.po" \
943             "$(srcdir)/vlc-translations-${VERSION}/$${i}.po" \
944             || true ; \
945         done
946         cp "$(srcdir)/doc/translations.txt" \
947           "$(srcdir)/vlc-translations-${VERSION}/README.txt"
948
949         echo "#!/bin/sh" >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
950         echo "" >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
951         echo 'if test $$# != 1; then' >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
952         echo "  echo \"Usage: convert-po.sh <.po file>\"" >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
953         echo "  exit 1" >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
954         echo "fi" >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
955         echo "" >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
956         echo 'msgfmt --statistics -o vlc.mo $$1' >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
957
958         $(AMTAR) chof - $(srcdir)/vlc-translations-$(VERSION) \
959           | GZIP=$(GZIP_ENV) gzip -c >$(srcdir)/vlc-translations-$(VERSION).tar.gz
960
961 ###############################################################################
962 # Stamp rules
963 ###############################################################################
964 clean: clean-stamp clean-recursive
965 clean-stamp:
966         rm -f stamp-builtin stamp-api
967
968 stamp-builtin: FORCE
969         @for dep in "" `$(VLC_CONFIG) --target builtin`; do \
970           if test "$${dep}" -nt "$(top_builddir)/vlc$(EXEEXT)"; then \
971             rm -f $@; \
972             break; \
973           fi; \
974         done
975         @if test ! -f $@; then printf "" > $@; fi
976
977 stamp-api: Makefile.in $(HEADERS_include) vlc-config vlc-api.pl src/misc/modules_builtin.h.in
978         cd $(srcdir) && cat $(HEADERS_include) | perl ./vlc-api.pl
979         touch stamp-api
980
981 ###############################################################################
982 # Force rule
983 ###############################################################################
984 FORCE: