]> git.sesse.net Git - vlc/blob - Makefile.am
* extras/contrib: Added libSDL and libSDL_image to the contrib system,
[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/cpu.c \
388         src/misc/configuration.c \
389         src/misc/image.c \
390         src/misc/iso_lang.c \
391         src/misc/iso-639_def.h \
392         src/misc/messages.c \
393         src/misc/objects.c \
394         src/misc/variables.c \
395         src/misc/error.c \
396         src/misc/net.c \
397         src/misc/getaddrinfo.c \
398         src/misc/vlm.c \
399         src/misc/xml.c \
400         src/extras/libc.c \
401         src/control/core.c \
402         src/control/util.c \
403         src/control/audio_video.c \
404         $(NULL)
405
406 SOURCES_libvlc = \
407         $(SOURCES_libvlc_common) \
408         $(OPT_SOURCES_libvlc_beos) \
409         $(OPT_SOURCES_libvlc_darwin) \
410         $(OPT_SOURCES_libvlc_win32) \
411         $(OPT_SOURCES_libvlc_dirent) \
412         $(OPT_SOURCES_libvlc_getopt) \
413         $(NULL)
414
415 ###############################################################################
416 # Building vlc
417 ###############################################################################
418
419 bin_PROGRAMS = vlc
420
421 vlc_SOURCES = src/vlc.c
422
423 # Work around a bug in the arm-wince-pe linker
424 if HAVE_WINCE
425 vlc_WORKAROUNDLDFLAGS = lib/libvlc.a
426 endif
427
428 vlc_LDFLAGS = `$(VLC_CONFIG) --libs vlc builtin` $(vlc_WORKAROUNDLDFLAGS)
429 vlc_LDADD = lib/libvlc.a $(DATA_win32_rc) $(LIB_intl)
430 vlc_CFLAGS = `$(VLC_CONFIG) --cflags vlc`
431
432 # We use DEPENDENCIES_vlc instead of vlc_DEPENDENCIES because of an
433 # old automake-1.5 bug (automake/279).
434 DEPENDENCIES_vlc = lib/libvlc.a $(DATA_win32_rc) $(LIB_intl)
435
436 vlc$(EXEEXT): $(vlc_OBJECTS) $(DEPENDENCIES_vlc) stamp-builtin
437         @rm -f $(top_builddir)/vlc$(EXEEXT)
438         @case `$(VLC_CONFIG) --linkage vlc builtin` in \
439           c++) echo $(CXXLINK) $(vlc_OBJECTS) $(vlc_LDFLAGS) $(LIBS) ; $(CXXLINK) $(vlc_OBJECTS) $(vlc_LDADD) $(vlc_LDFLAGS) $(LIBS) $(vlc_LDADD) ;; \
440           objc) echo $(OBJCLINK) $(vlc_OBJECTS) $(vlc_LDFLAGS) $(LIBS) ; $(OBJCLINK) $(vlc_OBJECTS) $(vlc_LDADD) $(vlc_LDFLAGS) $(LIBS) $(vlc_LDADD) ;; \
441           c|*) echo $(LINK) $(vlc_OBJECTS) $(vlc_LDFLAGS) $(LIBS) ; $(LINK) $(vlc_OBJECTS) $(vlc_LDADD) $(vlc_LDFLAGS) $(LIBS) $(vlc_LDADD) ;; \
442         esac
443
444 if HAVE_BEOS
445 noinst_DATA = vlc-bundle
446 vlc-bundle: vlc
447         rm -Rf $(top_builddir)/vlc-bundle ; mkdir -p $(top_builddir)/vlc-bundle
448         cp $(top_builddir)/vlc $(top_builddir)/vlc-bundle/
449         xres -o $(top_builddir)/vlc-bundle/vlc $(srcdir)/share/vlc_beos.rsrc
450         for i in "" `$(VLC_CONFIG) --target plugin` ; do \
451           if test -n "$$i" ; then \
452             mkdir -p $(top_builddir)/vlc-bundle/plugins ; \
453             cp "$$i$(LIBEXT)" $(top_builddir)/vlc-bundle/plugins/ ; \
454           fi ; \
455         done
456         if test -d $(top_builddir)/extras/contrib/vlc-lib ; then \
457           mkdir -p $(top_builddir)/vlc-bundle/lib ; \
458           for i in $(top_builddir)/extras/contrib/vlc-lib/*.so ; do \
459             cp $$i $(top_builddir)/vlc-bundle/lib/ ; \
460           done ; \
461         fi
462         for i in $(ALL_LINGUAS); do \
463           mkdir -p "$(top_builddir)/vlc-bundle/locale/$$i/LC_MESSAGES" ; \
464           cp "$(top_builddir)/po/$$i.gmo" \
465             "$(top_builddir)/vlc-bundle/locale/$$i/LC_MESSAGES/vlc.mo" || true ; \
466         done
467         find $(top_builddir)/vlc-bundle -type f -exec mimeset -f "{}" \;
468 endif
469
470 # Install the modules and the symlinks
471 install-exec-local:
472         for i in "" `$(VLC_CONFIG) --target plugin` ; do if test -n "$$i" ; then \
473           echo $(INSTALL) -m 755 "$$i$(LIBEXT)" "$(DESTDIR)$(libdir)/vlc/`echo $$i | sed -e 's,.*modules/\([^/]*\).*,\1,'`" ; \
474           $(INSTALL) -m 755 "$$i$(LIBEXT)" "$(DESTDIR)$(libdir)/vlc/`echo $$i | sed -e 's,.*modules/\([^/]*\).*,\1,'`" ; \
475         fi ; done
476         for i in "" `$(VLC_CONFIG) --target builtin` ; do if test -n "$$i" ; then \
477           echo $(INSTALL) -m 644 "$$i" "$(DESTDIR)$(libdir)/vlc" ; \
478           $(INSTALL) -m 644 "$$i" "$(DESTDIR)$(libdir)/vlc" ; \
479         fi ; done
480 if BUILD_MOZILLA
481         for i in "" `$(VLC_CONFIG) --target builtin pic` ; do if test -n "$$i" ; then \
482           echo $(INSTALL) -m 644 "$$i" "$(DESTDIR)$(libdir)/vlc" ; \
483           $(INSTALL) -m 644 "$$i" "$(DESTDIR)$(libdir)/vlc" ; \
484         fi ; done
485 endif
486         for i in "" $(ALIASES) ; do if test -n "$$i" ; then \
487           rm -f "$(DESTDIR)$(bindir)/$$i" && \
488           ln -s vlc "$(DESTDIR)$(bindir)/$$i" ; \
489         fi ; done
490
491 # the opposite of install-{data,exec}-local
492 uninstall-local:
493         @for i in "" `$(VLC_CONFIG) --target plugin` ; do if test -n "$$i" ; then \
494           echo rm -f "$(DESTDIR)$(libdir)/vlc/`echo $$i | sed -e 's,.*modules/\([^/]*\).*,\1,'`/$$(basename $$i$(LIBEXT))" ; \
495           rm -f "$(DESTDIR)$(libdir)/vlc/`echo $$i | sed -e 's,.*modules/\([^/]*\).*,\1,'`/$$(basename $$i$(LIBEXT))" ; \
496         fi ; done
497         @for i in "" `$(VLC_CONFIG) --target builtin` ; do if test -n "$$i" ; then \
498           echo rm -f "$(DESTDIR)$(libdir)/vlc/$$(basename $$i)" ; \
499           rm -f "$(DESTDIR)$(libdir)/vlc/$$(basename $$i)" ; \
500         fi ; done
501 if BUILD_MOZILLA
502         @for i in "" `$(VLC_CONFIG) --target builtin pic` ; do if test -n "$$i" ; then \
503           echo rm -f "$$i" "$(DESTDIR)$(libdir)/vlc/$$(basename $$i)" ; \
504           rm -f "$$i" "$(DESTDIR)$(libdir)/vlc/$$(basename $$i)" ; \
505         fi ; done
506 endif
507         for i in "" $(ALIASES) ; do if test -n "$$i" ; then \
508           rm -f "$(DESTDIR)$(bindir)/$$i" ; \
509         fi ; done
510
511 if HAVE_DARWIN
512 # Create the MacOS X app
513 vlc_app_DATA = VLC.app
514 vlc_appdir = $(bindir)
515 # VLC-release.app is the old VLC.app target
516 VLC-release.app: vlc
517         @if test -e "$(top_builddir)/tmp"; then \
518           echo "Error: please remove $(top_builddir)/tmp, it is in the way"; \
519           false; \
520         else \
521           echo "OK."; mkdir -p "$(top_builddir)/tmp/extras"; \
522         fi
523         rm -Rf $(top_builddir)/VLC-release.app
524         cp -r $(srcdir)/extras/MacOSX $(top_builddir)/tmp/extras
525         for i in AUTHORS COPYING README.MacOSX.rtf THANKS; do \
526           cp "$(srcdir)/$$i" $(top_builddir)/tmp; \
527         done
528         mkdir -p $(top_builddir)/tmp/modules/audio_output
529         cp $(srcdir)/modules/audio_output/coreaudio.c \
530            $(top_builddir)/tmp/modules/audio_output/coreaudio.c
531         mkdir -p $(top_builddir)/tmp/modules/gui/macosx
532         for i in \
533             about.h \
534             about.m \
535             applescript.h \
536             applescript.m \
537             controls.h \
538             controls.m \
539             equalizer.h \
540             equalizer.m \
541             intf.h \
542             intf.m \
543             macosx.m \
544             misc.h \
545             misc.m \
546             open.h \
547             open.m \
548             output.h \
549             output.m \
550             playlist.h \
551             playlist.m \
552             playlistinfo.h \
553             playlistinfo.m \
554             prefs_widgets.h \
555             prefs_widgets.m \
556             prefs.h \
557             prefs.m \
558             vout.h \
559             voutqt.m \
560             voutgl.m \
561             wizard.h \
562             wizard.m \
563             vout.m; do \
564           cp "$(srcdir)/modules/gui/macosx/$$i" \
565              $(top_builddir)/tmp/modules/gui/macosx; \
566         done
567         case $(target_triplet) in \
568           *darwin6*) cd $(top_builddir)/tmp/extras/MacOSX && pbxbuild -target vlc | grep -v '^\([ \t]\|$$\)'; \
569             cd ../../../; \
570             cp -r $(top_builddir)/tmp/extras/MacOSX/build/VLC.bundle \
571                   $(top_builddir)/VLC-release.app;; \
572           *darwin7*) cd $(top_builddir)/tmp/extras/MacOSX && xcodebuild -target vlc | grep -v '^\([ \t]\|$$\)'; \
573             cd ../../../; \
574             cp -r $(top_builddir)/tmp/extras/MacOSX/build/VLC.bundle \
575                   $(top_builddir)/VLC-release.app;; \
576           *darwin8*) cd $(top_builddir)/tmp/extras/MacOSX && xcodebuild -target vlc | grep -v '^\([ \t]\|$$\)'; \
577             cd ../../../; \
578             cp -r $(top_builddir)/tmp/extras/MacOSX/build/Default/VLC.bundle \
579                   $(top_builddir)/VLC-release.app;; \
580         esac
581         rm -Rf $(top_builddir)/tmp
582         $(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS
583         $(INSTALL) $(top_builddir)/vlc \
584                    $(top_builddir)/VLC-release.app/Contents/MacOS/VLC
585         ln -sf ./VLC $(top_builddir)/VLC-release.app/Contents/MacOS/clivlc
586         $(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS/modules
587         for i in "" `$(VLC_CONFIG) --target plugin` ; do \
588           if test -n "$$i" ; \
589             then $(INSTALL) "$$i$(LIBEXT)" \
590                            "$(top_builddir)/VLC-release.app/Contents/MacOS/modules" ; \
591           fi ; done
592         if test -d $(top_builddir)/extras/contrib/vlc-lib; then \
593           mkdir -p $(top_builddir)/VLC-release.app/Contents/MacOS/lib ; \
594           for i in $(top_builddir)/extras/contrib/vlc-lib/*.dylib ; do \
595             $(INSTALL) -m 644 $${i} $(top_builddir)/VLC-release.app/Contents/MacOS/lib/vlc_`basename $${i}` ; \
596           done ; \
597         fi
598         $(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS/share
599         $(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS/share/http
600         for i in $(srcdir)/share/http/* ; do \
601           $(INSTALL) -m 644 $${i} $(top_builddir)/VLC-release.app/Contents/MacOS/share/http/`basename $${i}` ; \
602         done ; \
603         $(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS/share/http/vlm
604         for i in $(srcdir)/share/http/vlm/* ; do \
605           $(INSTALL) -m 644 $${i} $(top_builddir)/VLC-release.app/Contents/MacOS/share/http/vlm/`basename $${i}` ; \
606         done ; \
607         $(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS/share/http/admin
608         for i in $(srcdir)/share/http/admin/* ; do \
609           $(INSTALL) -m 644 $${i} $(top_builddir)/VLC-release.app/Contents/MacOS/share/http/admin/`basename $${i}` ; \
610         done ; \
611         $(INSTALL) -m 644 $(srcdir)/share/http/admin/.access $(top_builddir)/VLC-release.app/Contents/MacOS/share/http/admin/.access
612         $(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS/locale
613         for i in $(ALL_LINGUAS); do \
614           mkdir -p $(top_builddir)/VLC-release.app/Contents/MacOS/locale/$${i}/LC_MESSAGES ; \
615           cp $(srcdir)/po/$${i}.gmo $(top_builddir)/VLC-release.app/Contents/MacOS/locale/$${i}/LC_MESSAGES/vlc.mo || true ; \
616           mkdir -p $(top_builddir)/VLC-release.app/Contents/Resources/$${i}.lproj ; \
617           ln -sf ../English.lproj/InfoPlist.strings \
618               $(top_builddir)/VLC-release.app/Contents/Resources/$${i}.lproj ; \
619           ln -sf ../English.lproj/MainMenu.nib \
620               $(top_builddir)/VLC-release.app/Contents/Resources/$${i}.lproj ; \
621           ln -sf ../English.lproj/vlc.scriptTerminology \
622               $(top_builddir)/VLC-release.app/Contents/Resources/$${i}.lproj ; \
623         done
624         printf "APPLVLC#" >| $(top_builddir)/VLC-release.app/Contents/PkgInfo
625
626 VLC.app: vlc
627         @if test -e "$(top_builddir)/tmp"; then \
628           echo "Error: please remove $(top_builddir)/tmp, it is in the way"; \
629           false; \
630         else \
631           echo "OK."; mkdir -p "$(top_builddir)/tmp/extras"; \
632         fi
633         rm -Rf $(top_builddir)/VLC.app
634         cp -r $(srcdir)/extras/MacOSX $(top_builddir)/tmp/extras
635         for i in AUTHORS COPYING README.MacOSX.rtf THANKS; do \
636           cp "$(srcdir)/$$i" $(top_builddir)/tmp; \
637         done
638         mkdir -p $(top_builddir)/tmp/modules/audio_output
639         cp $(srcdir)/modules/audio_output/coreaudio.c \
640            $(top_builddir)/tmp/modules/audio_output/coreaudio.c
641         mkdir -p $(top_builddir)/tmp/modules/gui/macosx
642         for i in \
643             about.h \
644             about.m \
645             applescript.h \
646             applescript.m \
647             controls.h \
648             controls.m \
649             equalizer.h \
650             equalizer.m \
651             intf.h \
652             intf.m \
653             macosx.m \
654             misc.h \
655             misc.m \
656             open.h \
657             open.m \
658             output.h \
659             output.m \
660             playlist.h \
661             playlist.m \
662             playlistinfo.h \
663             playlistinfo.m \
664             prefs_widgets.h \
665             prefs_widgets.m \
666             prefs.h \
667             prefs.m \
668             vout.h \
669             voutqt.m \
670             voutgl.m \
671             wizard.h \
672             wizard.m \
673             vout.m; do \
674           cp "$(srcdir)/modules/gui/macosx/$$i" \
675              $(top_builddir)/tmp/modules/gui/macosx; \
676         done
677         case $(target_triplet) in \
678           *darwin6*) cd $(top_builddir)/tmp/extras/MacOSX && pbxbuild -target vlc | grep -v '^\([ \t]\|$$\)'; \
679             cd ../../../; \
680             cp -r $(top_builddir)/tmp/extras/MacOSX/build/VLC.bundle \
681                   $(top_builddir)/VLC.app;; \
682           *darwin7*) cd $(top_builddir)/tmp/extras/MacOSX && xcodebuild -target vlc | grep -v '^\([ \t]\|$$\)'; \
683             cd ../../../; \
684             cp -r $(top_builddir)/tmp/extras/MacOSX/build/VLC.bundle \
685                   $(top_builddir)/VLC.app;; \
686           *darwin8*) cd $(top_builddir)/tmp/extras/MacOSX && xcodebuild -target vlc | grep -v '^\([ \t]\|$$\)'; \
687             cd ../../../; \
688             cp -r $(top_builddir)/tmp/extras/MacOSX/build/Default/VLC.bundle \
689                   $(top_builddir)/VLC.app;; \
690         esac
691         rm -Rf $(top_builddir)/tmp
692         $(INSTALL) -d $(top_builddir)/VLC.app/Contents/MacOS
693         $(INSTALL) $(top_builddir)/vlc \
694                    $(top_builddir)/VLC.app/Contents/MacOS/VLC
695         ln -sf ./VLC $(top_builddir)/VLC.app/Contents/MacOS/clivlc
696         $(INSTALL) -d $(top_builddir)/VLC.app/Contents/MacOS/modules
697         for i in "" `$(VLC_CONFIG) --target plugin` ; do \
698           if test -n "$$i" ; \
699             then ln -sfn "`pwd`/$$i$(LIBEXT)" \
700                            "$(top_builddir)/VLC.app/Contents/MacOS/modules" ; \
701           fi ; done
702         if test -d $(top_builddir)/extras/contrib/vlc-lib; then \
703           mkdir -p $(top_builddir)/VLC.app/Contents/MacOS/lib ; \
704           for i in $(top_builddir)/extras/contrib/vlc-lib/*.dylib ; do \
705             ln -sfn `pwd`/$${i} $(top_builddir)/VLC.app/Contents/MacOS/lib/vlc_`basename $${i}` ; \
706           done ; \
707         fi
708         ln -sfn `pwd`/share $(top_builddir)/VLC.app/Contents/MacOS/
709         $(INSTALL) -d $(top_builddir)/VLC.app/Contents/MacOS/locale
710         for i in $(ALL_LINGUAS); do \
711           mkdir -p $(top_builddir)/VLC.app/Contents/MacOS/locale/$${i}/LC_MESSAGES ; \
712           ln -sfn `pwd`/po/$${i}.gmo $(top_builddir)/VLC.app/Contents/MacOS/locale/$${i}/LC_MESSAGES/vlc.mo || true ; \
713           mkdir -p $(top_builddir)/VLC.app/Contents/Resources/$${i}.lproj ; \
714           ln -sf ../English.lproj/InfoPlist.strings \
715               $(top_builddir)/VLC.app/Contents/Resources/$${i}.lproj ; \
716           ln -sf ../English.lproj/MainMenu.nib \
717               $(top_builddir)/VLC.app/Contents/Resources/$${i}.lproj ; \
718         done
719         printf "APPLVLC#" >| $(top_builddir)/VLC.app/Contents/PkgInfo
720 endif
721
722 if HAVE_WIN32
723 DATA_win32_rc = $(noinst_share_vlc_win32_rc_DATA)
724 noinst_share_vlc_win32_rc_DATA = share/vlc_win32_rc.$(OBJEXT)
725 noinst_share_vlc_win32_rcdir = $(libdir)
726 share/vlc_win32_rc.$(OBJEXT): share/vlc_win32_rc.rc
727         $(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 $@
728 endif
729
730
731 ###############################################################################
732 # Building specific source packages
733 ###############################################################################
734
735 dist-woody: distdir
736         $(remove_distdir_woody)
737         mv $(distdir) $(PACKAGE)-woody-$(VERSION)
738         $(srcdir)/toolbox --make-woody $(PACKAGE)-woody-$(VERSION)
739         $(AMTAR) chof - $(PACKAGE)-woody-$(VERSION) \
740           | GZIP=$(GZIP_ENV) gzip -c >$(PACKAGE)-woody-$(VERSION).tar.gz
741         $(remove_distdir_woody)
742
743 remove_distdir_woody = \
744   { test ! -d $(PACKAGE)-woody-$(VERSION) \
745     || { find $(PACKAGE)-woody-$(VERSION) -type d ! -perm -200 \
746            -exec chmod u+w {} ';' \
747          && rm -fr $(PACKAGE)-woody-$(VERSION); }; }
748
749 ###############################################################################
750 # Building architecture-specific binary packages
751 ###############################################################################
752
753 # XXX: this rule is probably only useful to you if you have exactly
754 # the same setup as me. Contact sam@zoy.org if you need to use it.
755 #
756 package-win32-base:
757 # Check that tmp isn't in the way
758         @if test -e "$(top_builddir)/vlc-${VERSION}"; then \
759           echo "Error: please remove $(top_builddir)/vlc-${VERSION}, it is in the way"; \
760           false; \
761         else \
762           echo "OK."; mkdir -p "$(top_builddir)/vlc-${VERSION}"; \
763         fi
764
765 # Copy relevant files
766         cp "$(srcdir)/vlc.win32.nsi" "$(top_builddir)/vlc-${VERSION}/"
767         cp "$(top_builddir)/vlc$(EXEEXT)" "$(top_builddir)/vlc-${VERSION}/"
768         cp "$(top_srcdir)/vlc.exe.manifest" "$(top_builddir)/vlc-${VERSION}/"
769         $(STRIP) "$(top_builddir)/vlc-${VERSION}/vlc$(EXEEXT)"
770
771         for file in AUTHORS MAINTAINERS THANKS NEWS COPYING README ; \
772           do sed 's/@/_AT_/' < "$(srcdir)/$$file" > "$(top_builddir)/vlc-${VERSION}/$${file}.txt" ; \
773           unix2dos "$(top_builddir)/vlc-${VERSION}/$${file}.txt" ; done
774
775         mkdir -p "$(top_builddir)/vlc-${VERSION}/plugins"
776         for i in "" `$(VLC_CONFIG) --target plugin` ; do \
777           if test -n "$$i" ; then \
778             $(INSTALL) "$(top_builddir)/$$i$(LIBEXT)" \
779             "$(top_builddir)/vlc-${VERSION}/plugins/" ; \
780           fi ; done
781
782         for i in "" $(top_builddir)/vlc-${VERSION}/plugins/*$(LIBEXT) ; \
783           do if test -n "$$i" ; then $(STRIP) "$$i" ; fi ; done
784
785         mkdir $(top_builddir)/vlc-${VERSION}/locale
786         for i in $(ALL_LINGUAS); do \
787           mkdir -p "$(top_builddir)/vlc-${VERSION}/locale/$${i}/LC_MESSAGES" ; \
788           cp "$(srcdir)/po/$${i}.gmo" \
789             "$(top_builddir)/vlc-${VERSION}/locale/$${i}/LC_MESSAGES/vlc.mo" \
790             || true ; \
791         done
792
793         mkdir -p $(top_builddir)/vlc-${VERSION}/skins/fonts
794         for i in $(srcdir)/share/skins2/fonts/*.*; do \
795           cp $$i $(top_builddir)/vlc-${VERSION}/skins/fonts/ || true ; \
796         done
797         for i in $(srcdir)/share/skins2/*.*; do \
798           cp $$i $(top_builddir)/vlc-${VERSION}/skins/ || true ; \
799         done
800
801         mkdir -p "$(top_builddir)/vlc-${VERSION}/http/admin"
802         mkdir -p "$(top_builddir)/vlc-${VERSION}/http/vlm"
803         cp $(srcdir)/share/http/*.html $(top_builddir)/vlc-${VERSION}/http/ ;
804         unix2dos $(top_builddir)/vlc-${VERSION}/http/*.html ;
805         cp $(srcdir)/share/http/*.css $(top_builddir)/vlc-${VERSION}/http/ ;
806         unix2dos $(top_builddir)/vlc-${VERSION}/http/*.css ;
807         cp $(srcdir)/share/http/*.png $(top_builddir)/vlc-${VERSION}/http/
808         cp $(srcdir)/share/http/*.ico $(top_builddir)/vlc-${VERSION}/http/ ;
809         cp $(srcdir)/share/http/admin/*.html \
810            $(top_builddir)/vlc-${VERSION}/http/admin/ ;
811         unix2dos $(top_builddir)/vlc-${VERSION}/http/admin/*.html ;
812         cp $(srcdir)/share/http/admin/dboxfiles.html \
813            $(top_builddir)/vlc-${VERSION}/http/admin/ ;
814         cp $(srcdir)/share/http/admin/.access \
815            $(top_builddir)/vlc-${VERSION}/http/admin/ ;
816         unix2dos $(top_builddir)/vlc-${VERSION}/http/admin/.access ;
817         cp $(srcdir)/share/http/vlm/*.html \
818            $(top_builddir)/vlc-${VERSION}/http/vlm/ ;
819         unix2dos $(top_builddir)/vlc-${VERSION}/http/vlm/*.html ;
820
821         cp $(srcdir)/share/vlc48x48new.ico $(top_builddir)/vlc-${VERSION}/ ;
822
823         mkdir -p "$(top_builddir)/vlc-${VERSION}/mozilla"
824 if BUILD_MOZILLA
825         cp $(top_builddir)/mozilla/*$(LIBEXT) $(top_builddir)/vlc-${VERSION}/mozilla/ ;
826         $(STRIP) $(top_builddir)/vlc-${VERSION}/mozilla/*$(LIBEXT);
827         cp $(top_builddir)/mozilla/vlcintf.xpt  $(top_builddir)/vlc-${VERSION}/mozilla/ ;
828 endif
829
830         mkdir -p "$(top_builddir)/vlc-${VERSION}/activex"
831 if BUILD_ACTIVEX
832         cp $(srcdir)/activex/README.TXT  $(top_builddir)/vlc-${VERSION}/activex/ ;
833         cp $(srcdir)/activex/test.html  $(top_builddir)/vlc-${VERSION}/activex/ ;
834         unix2dos $(top_builddir)/vlc-${VERSION}/activex/* ;
835
836         cp $(top_builddir)/activex/*$(LIBEXT) $(top_builddir)/vlc-${VERSION}/activex/ ;
837         $(STRIP) $(top_builddir)/vlc-${VERSION}/activex/*$(LIBEXT);
838 endif
839 # Rebase all those DLLs to speed up loading (need cygwin rebase)
840         if [ -x rebase ]; then \
841                 find $(top_builddir)/vlc-${VERSION} -type f -name '*.dll' -print | rebase -b 0x70000000 -T -; \
842         fi
843
844 package-win32-base-exe:
845 # Create package
846         wine C:/Program\ Files/NSIS/makensis.exe \
847              /DVERSION=${VERSION} $(top_builddir)/vlc-${VERSION}/vlc.win32.nsi
848
849 package-win32-base-exe-cygwin:
850 # Create package
851         C:/Program\ Files/NSIS/makensis.exe \
852              /DVERSION=${VERSION} $(top_builddir)/vlc-${VERSION}/vlc.win32.nsi
853
854 package-win32-base-exe-linux:
855 # Create package
856         makensis -DVERSION=${VERSION} $(top_builddir)/vlc-${VERSION}/vlc.win32.nsi
857
858 package-win32-base-zip:
859 # Create package 
860         zip -r vlc-${VERSION}-win32.zip vlc-${VERSION}
861
862 package-win32-exe: package-win32-base package-win32-base-exe
863 # Clean up
864         rm -Rf $(top_builddir)/vlc-${VERSION}
865
866 package-win32-exe-linux: package-win32-base package-win32-base-exe-linux
867 # Clean up
868         rm -Rf $(top_builddir)/vlc-${VERSION}
869
870 package-win32-zip: package-win32-base package-win32-base-zip
871 # Clean up
872         rm -Rf $(top_builddir)/vlc-${VERSION}
873
874 package-win32: package-win32-base package-win32-base-exe package-win32-base-zip
875 # Clean up
876         rm -Rf $(top_builddir)/vlc-${VERSION}
877
878 package-beos:
879 # Check that tmp isn't in the way
880         @if test -e $(srcdir)/tmp; then \
881           echo "Error: please remove $(srcdir)/tmp, it is in the way"; \
882           false ; \
883         else \
884           echo "OK." ; mkdir $(srcdir)/tmp ; \
885         fi
886
887 # Copy relevant files
888         mkdir -p $(srcdir)/tmp/vlc ;
889         cd $(srcdir) && cp -R vlc-bundle/* AUTHORS COPYING ChangeLog README \
890           THANKS NEWS tmp/vlc/ ;
891
892 # Create debug package
893         xres -o $(srcdir)/tmp/vlc/vlc $(srcdir)/share/vlc_beos.rsrc ;
894         find $(srcdir)/tmp/vlc -exec mimeset -f {} \; ;
895         mv $(srcdir)/tmp/vlc $(srcdir)/tmp/vlc-${VERSION} ;
896         (cd $(srcdir)/tmp ; zip -9 -r vlc-${VERSION}-BeOS-debug.zip vlc-${VERSION} )
897         mv $(srcdir)/tmp/vlc-${VERSION}-BeOS-debug.zip $(srcdir)/ ;
898         mv $(srcdir)/tmp/vlc-${VERSION} $(srcdir)/tmp/vlc ;
899
900 # Create normal package
901         $(STRIP) --strip-debug --strip-unneeded $(srcdir)/tmp/vlc/vlc ;
902         find $(srcdir)/tmp/vlc -name 'lib*.so' -exec $(STRIP) \
903           --strip-debug --strip-unneeded "{}" \; ;
904         xres -o $(srcdir)/tmp/vlc/vlc $(srcdir)/share/vlc_beos.rsrc ;
905         find $(srcdir)/tmp/vlc -exec mimeset -f {} \; ;
906         mv $(srcdir)/tmp/vlc $(srcdir)/tmp/vlc-${VERSION} ;
907         (cd $(srcdir)/tmp ; zip -9 -r vlc-${VERSION}-BeOS.zip vlc-${VERSION} )
908         mv $(srcdir)/tmp/vlc-${VERSION}-BeOS.zip $(srcdir)/ ;
909
910 # Clean up
911         rm -Rf $(srcdir)/tmp ;
912
913 package-macosx:
914 # Check that tmp isn't in the way
915         @if test -e "$(top_builddir)/tmp"; then \
916           echo "Error: please remove $(top_builddir)/tmp, it is in the way"; \
917           false; \
918         else \
919           echo "OK."; mkdir -p "$(top_builddir)/tmp"; \
920         fi
921
922 # Copy relevant files 
923         cp -R "$(top_builddir)/VLC-release.app" "$(top_builddir)/tmp/VLC.app"
924         cd "$(srcdir)" && cp AUTHORS COPYING ChangeLog README README.MacOSX.rtf THANKS NEWS $(top_builddir)/tmp/
925
926 # Create disk image 
927         $(srcdir)/extras/MacOSX/macosx-dmg "vlc-${VERSION}" $(top_builddir)/tmp
928
929 # Clean up
930         rm -Rf $(top_builddir)/tmp
931
932 package-translations:
933         @if test -e "$(srcdir)/vlc-translations-${VERSION}"; then \
934           echo "Error: please remove $(srcdir)/vlc-translations-${VERSION}, it is in the way"; \
935           false; \
936         else \
937           echo "OK."; mkdir -p "$(srcdir)/vlc-translations-${VERSION}"; \
938         fi
939 # Copy translations
940         for i in $(ALL_LINGUAS); do \
941           cp "$(srcdir)/po/$${i}.po" \
942             "$(srcdir)/vlc-translations-${VERSION}/$${i}.po" \
943             || true ; \
944         done
945         cp "$(srcdir)/doc/translations.txt" \
946           "$(srcdir)/vlc-translations-${VERSION}/README.txt"
947
948         echo "#!/bin/sh" >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
949         echo "" >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
950         echo 'if test $$# != 1; then' >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
951         echo "  echo \"Usage: convert-po.sh <.po file>\"" >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
952         echo "  exit 1" >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
953         echo "fi" >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
954         echo "" >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
955         echo 'msgfmt --statistics -o vlc.mo $$1' >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
956
957         $(AMTAR) chof - $(srcdir)/vlc-translations-$(VERSION) \
958           | GZIP=$(GZIP_ENV) gzip -c >$(srcdir)/vlc-translations-$(VERSION).tar.gz
959
960 ###############################################################################
961 # Stamp rules
962 ###############################################################################
963 clean: clean-stamp clean-recursive
964 clean-stamp:
965         rm -f stamp-builtin stamp-api
966
967 stamp-builtin: FORCE
968         @for dep in "" `$(VLC_CONFIG) --target builtin`; do \
969           if test "$${dep}" -nt "$(top_builddir)/vlc$(EXEEXT)"; then \
970             rm -f $@; \
971             break; \
972           fi; \
973         done
974         @if test ! -f $@; then printf "" > $@; fi
975
976 stamp-api: Makefile.in $(HEADERS_include) vlc-config vlc-api.pl src/misc/modules_builtin.h.in
977         cd $(srcdir) && cat $(HEADERS_include) | perl ./vlc-api.pl
978         touch stamp-api
979
980 ###############################################################################
981 # Force rule
982 ###############################################################################
983 FORCE: