]> git.sesse.net Git - vlc/blob - Makefile.am
Really fix libintl linking
[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/bindings 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 src modules po . mozilla bindings activex share m4 doc
16 DIST_SUBDIRS = $(SUBDIRS) debian ipkg
17
18 EXTRA_DIST = \
19         HACKING \
20         INSTALL.win32 \
21         INSTALL.wince \
22         vlc.exe.manifest \
23         MAINTAINERS \
24         README.MacOSX.rtf \
25         bootstrap \
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_distclean = vlc-config compile
35 BUILT_SOURCES_clean = macosx-sdk
36
37 BUILT_SOURCES = $(BUILT_SOURCES_distclean) $(BUILT_SOURCES_clean)
38
39 SUFFIXES = 
40
41 DISTCHECK_CONFIGURE_FLAGS = --disable-dvd --disable-mad --disable-libmpeg2 \
42         --disable-ffmpeg --disable-faad --disable-skins2
43
44 # Tell aclocal to use -I m4. Wonder if it really works.
45 ACLOCAL_AMFLAGS = -I m4
46
47 # XXX: these flags could be set in configure.ac, but we set them here
48 # because old versions of automake don't support them in configure.ac.
49 AUTOMAKE_OPTIONS = dist-bzip2 subdir-objects
50
51 ###############################################################################
52 # MacOS X project
53 ###############################################################################
54
55 EXTRA_DIST += \
56         extras/MacOSX/Resources/English.lproj/MainMenu.nib/classes.nib \
57         extras/MacOSX/Resources/English.lproj/MainMenu.nib/info.nib \
58         extras/MacOSX/Resources/English.lproj/MainMenu.nib/keyedobjects.nib \
59         extras/MacOSX/Resources/English.lproj/About.nib/classes.nib \
60         extras/MacOSX/Resources/English.lproj/About.nib/info.nib \
61         extras/MacOSX/Resources/English.lproj/About.nib/keyedobjects.nib \
62         extras/MacOSX/Resources/English.lproj/Open.nib/classes.nib \
63         extras/MacOSX/Resources/English.lproj/Open.nib/info.nib \
64         extras/MacOSX/Resources/English.lproj/Open.nib/keyedobjects.nib \
65         extras/MacOSX/Resources/English.lproj/Preferences.nib/classes.nib \
66         extras/MacOSX/Resources/English.lproj/Preferences.nib/info.nib \
67         extras/MacOSX/Resources/English.lproj/Preferences.nib/keyedobjects.nib \
68         extras/MacOSX/Resources/English.lproj/Wizard.nib/classes.nib \
69         extras/MacOSX/Resources/English.lproj/Wizard.nib/info.nib \
70         extras/MacOSX/Resources/English.lproj/Wizard.nib/keyedobjects.nib \
71         extras/MacOSX/Resources/English.lproj/Bookmarks.nib/classes.nib \
72         extras/MacOSX/Resources/English.lproj/Bookmarks.nib/info.nib \
73         extras/MacOSX/Resources/English.lproj/Bookmarks.nib/keyedobjects.nib \
74         extras/MacOSX/Resources/English.lproj/Extended.nib/classes.nib \
75         extras/MacOSX/Resources/English.lproj/Extended.nib/info.nib \
76         extras/MacOSX/Resources/English.lproj/Extended.nib/keyedobjects.nib \
77         extras/MacOSX/Resources/English.lproj/SFilters.nib/classes.nib \
78         extras/MacOSX/Resources/English.lproj/SFilters.nib/info.nib \
79         extras/MacOSX/Resources/English.lproj/SFilters.nib/keyedobjects.nib \
80         extras/MacOSX/Resources/English.lproj/Update.nib/classes.nib \
81         extras/MacOSX/Resources/English.lproj/Update.nib/info.nib \
82         extras/MacOSX/Resources/English.lproj/Update.nib/keyedobjects.nib \
83         extras/MacOSX/Resources/English.lproj/InfoPlist.strings \
84         extras/MacOSX/Resources/a52.icns \
85         extras/MacOSX/Resources/aac.icns \
86         extras/MacOSX/Resources/asf.icns \
87         extras/MacOSX/Resources/asx.icns \
88         extras/MacOSX/Resources/avi.icns \
89         extras/MacOSX/Resources/bin.icns \
90         extras/MacOSX/Resources/cue.icns \
91         extras/MacOSX/Resources/dat.icns \
92         extras/MacOSX/Resources/divx.icns \
93         extras/MacOSX/Resources/dv.icns \
94         extras/MacOSX/Resources/generic.icns \
95         extras/MacOSX/Resources/m3u.icns \
96         extras/MacOSX/Resources/mov.icns \
97         extras/MacOSX/Resources/mp3.icns \
98         extras/MacOSX/Resources/mp4.icns \
99         extras/MacOSX/Resources/mpeg.icns \
100         extras/MacOSX/Resources/mpeg1.icns \
101         extras/MacOSX/Resources/mpeg2.icns \
102         extras/MacOSX/Resources/mpeg4.icns \
103         extras/MacOSX/Resources/mpg.icns \
104         extras/MacOSX/Resources/ogg.icns \
105         extras/MacOSX/Resources/ogm.icns \
106         extras/MacOSX/Resources/pls.icns \
107         extras/MacOSX/Resources/srt.icns \
108         extras/MacOSX/Resources/sub.icns \
109         extras/MacOSX/Resources/vlc.icns \
110         extras/MacOSX/Resources/vob.icns \
111         extras/MacOSX/Resources/wma.icns \
112         extras/MacOSX/Resources/wmv.icns \
113         extras/MacOSX/Resources/pause.png \
114         extras/MacOSX/Resources/pause_blue.png \
115         extras/MacOSX/Resources/play.png \
116         extras/MacOSX/Resources/play_blue.png \
117         extras/MacOSX/Resources/stop.png \
118         extras/MacOSX/Resources/stop_blue.png \
119         extras/MacOSX/Resources/display.png \
120         extras/MacOSX/Resources/display_slider.png \
121         extras/MacOSX/Resources/display_track.png \
122         extras/MacOSX/Resources/equalizerdrawer_active.png \
123         extras/MacOSX/Resources/equalizerdrawer_blue.png \
124         extras/MacOSX/Resources/fullscreen_active.png \
125         extras/MacOSX/Resources/fullscreen_blue.png \
126         extras/MacOSX/Resources/next_active.png \
127         extras/MacOSX/Resources/next_blue.png \
128         extras/MacOSX/Resources/playlistdrawer_active.png \
129         extras/MacOSX/Resources/playlistdrawer_blue.png \
130         extras/MacOSX/Resources/previous_active.png \
131         extras/MacOSX/Resources/previous_blue.png \
132         extras/MacOSX/Resources/skip_forward_active.png \
133         extras/MacOSX/Resources/skip_forward_blue.png \
134         extras/MacOSX/Resources/skip_previous_active.png \
135         extras/MacOSX/Resources/skip_previous_blue.png \
136         extras/MacOSX/Resources/volume_high.png \
137         extras/MacOSX/Resources/volume_low.png \
138         extras/MacOSX/Resources/volumeslider_blue.png \
139         extras/MacOSX/Resources/volumeslider_normal.png \
140         extras/MacOSX/Resources/volumetrack.png \
141         extras/MacOSX/Resources/about_bg.png \
142         extras/MacOSX/Resources/vlc.scriptSuite \
143         extras/MacOSX/Resources/vlc.scriptTerminology \
144         extras/MacOSX/Resources/README \
145         extras/MacOSX/vlc.pbproj/project.pbxproj \
146         extras/MacOSX/Delete_Preferences.app/Contents/Info.plist \
147         extras/MacOSX/Delete_Preferences.app/Contents/PkgInfo \
148         extras/MacOSX/Delete_Preferences.app/Contents/MacOS/applet \
149         extras/MacOSX/Delete_Preferences.app/Contents/Resources/description.rtfd/TXT.rtf \
150         extras/MacOSX/Delete_Preferences.app/Contents/Resources/applet.icns \
151         extras/MacOSX/Delete_Preferences.app/Contents/Resources/applet.rsrc \
152         extras/MacOSX/Delete_Preferences.app/Contents/Resources/Scripts/main.scpt \
153         extras/Makefile \
154         extras/zsh.cpp \
155         $(NULL)
156
157 ###############################################################################
158 # MS Visual Studio and eMbedded Visual Studio projects
159 ###############################################################################
160
161 EXTRA_DIST += \
162         msvc/vlc.dsw \
163         msvc/libvlc.dsp.in \
164         msvc/plugins.dsp.in \
165         msvc/vlc.dsp.in \
166         msvc/config.h.in \
167         msvc/modules_builtin_msvc.h \
168         evc/vlc.vcw \
169         evc/libvlc.vcp.in \
170         evc/vlc.vcp.in \
171         evc/plugins.vcp.in \
172         evc/errno.h \
173         evc/config.h.in \
174         evc/modules_builtin_evc.h \
175         $(NULL)
176
177 dist-hook:
178         cd $(distdir) && srcdir=. $(SHELL) ./toolbox --update-vc
179         distdir=$(distdir) srcdir=$(srcdir) $(SHELL) $(srcdir)/toolbox --dist-contrib
180
181 ###############################################################################
182 # Building libvlc
183 ###############################################################################
184
185 bin_SCRIPTS = vlc-config
186 vlc-config: $(top_builddir)/config.status $(top_builddir)/vlc-config.in
187         $(SHELL) ./config.status --file=$@
188         chmod 0755 $@
189
190 vlc-config.in: vlc-config.in.in
191         ./config.status --recheck
192
193 CLEANFILES = $(BUILT_SOURCES_clean) stamp-builtin
194 DISTCLEANFILES = $(BUILT_SOURCES_distclean) vlc-config.in compile
195
196 ###############################################################################
197 # Building vlc
198 ###############################################################################
199
200 bin_PROGRAMS = vlc
201
202 vlc_SOURCES = src/vlc.c
203 # Ugly kludge so that automake defines $(CXXLINK)
204 EXTRA_vlc_SOURCES = extras/zsh.cpp
205
206 # Work around a bug in the arm-wince-pe linker
207 if HAVE_WINCE
208 vlc_WORKAROUNDLDFLAGS = $(LIB_libvlc)
209 endif
210
211 if BUILD_SHARED
212 LIB_libvlc = src/libvlc$(LIBEXT)
213 #-Wl,-rpath $(libdir)
214 else
215 LIB_libvlc = src/libvlc.a
216 endif
217
218 vlc_LDFLAGS = `$(VLC_CONFIG) --libs vlc builtin` $(vlc_WORKAROUNDLDFLAGS)
219 vlc_LDADD = $(LIB_libvlc) $(DATA_win32_rc) $(INCLUDED_LIBINTL)
220 vlc_CFLAGS = `$(VLC_CONFIG) --cflags vlc`
221
222 # We use DEPENDENCIES_vlc instead of vlc_DEPENDENCIES because of an
223 # old automake-1.5 bug (automake/279).
224 DEPENDENCIES_vlc = $(LIB_libvlc) $(DATA_win32_rc)
225
226 vlc$(EXEEXT): $(vlc_OBJECTS) $(DEPENDENCIES_vlc) stamp-builtin
227         @rm -f vlc$(EXEEXT)
228         @case `$(VLC_CONFIG) --linkage vlc builtin` in \
229           c++) cmd="$(CXXLINK)" ;; \
230           objc) cmd="$(OBJCLINK)" ;; \
231           c|*) cmd="$(LINK)" ;; \
232         esac ; \
233         cmd="$$cmd $(vlc_OBJECTS) $(vlc_LDADD) $(vlc_LDFLAGS) $(LIBS)" ; \
234         echo $$cmd ; \
235         eval $$cmd
236
237 if HAVE_BEOS
238 DATA_noinst_beos = vlc-bundle
239 vlc-bundle: vlc
240         rm -Rf $(top_builddir)/vlc-bundle ; mkdir -p $(top_builddir)/vlc-bundle
241         cp $(top_builddir)/vlc $(top_builddir)/vlc-bundle/
242         xres -o $(top_builddir)/vlc-bundle/vlc $(srcdir)/share/vlc_beos.rsrc
243         for i in "" `$(VLC_CONFIG) --target plugin` ; do \
244           if test -n "$$i" ; then \
245             mkdir -p $(top_builddir)/vlc-bundle/plugins ; \
246             cp "$$i$(LIBEXT)" $(top_builddir)/vlc-bundle/plugins/ ; \
247           fi ; \
248         done
249         if test -d $(top_builddir)/extras/contrib/vlc-lib ; then \
250           mkdir -p $(top_builddir)/vlc-bundle/lib ; \
251           for i in $(top_builddir)/extras/contrib/vlc-lib/*.so ; do \
252             cp $$i $(top_builddir)/vlc-bundle/lib/ ; \
253           done ; \
254         fi
255         for i in $(ALL_LINGUAS); do \
256           mkdir -p "$(top_builddir)/vlc-bundle/locale/$$i/LC_MESSAGES" ; \
257           cp "$(top_builddir)/po/$$i.gmo" \
258             "$(top_builddir)/vlc-bundle/locale/$$i/LC_MESSAGES/vlc.mo" || true ; \
259         done
260         find $(top_builddir)/vlc-bundle -type f -exec mimeset -f "{}" \;
261 endif
262
263 # Install the symlinks and shared libvlc
264 install-exec-local:
265         for i in "" $(ALIASES) ; do if test -n "$$i" ; then \
266           rm -f "$(DESTDIR)$(bindir)/$$i" && \
267           ln -sf vlc "$(DESTDIR)$(bindir)/$$i" ; \
268         fi ; done
269
270 # the opposite of install-{data,exec}-local
271 uninstall-local:
272         for i in "" $(ALIASES) ; do if test -n "$$i" ; then \
273           rm -f "$(DESTDIR)$(bindir)/$$i" ; \
274         fi ; done
275
276 if HAVE_DARWIN
277 # Create the MacOS X app
278 vlc_app_DATA = VLC.app
279 vlc_appdir = $(bindir)
280 # VLC-release.app is the old VLC.app target
281 VLC-release.app: vlc
282         @if test -e "$(top_builddir)/tmp"; then \
283           echo "Error: please remove $(top_builddir)/tmp, it is in the way"; \
284           false; \
285         else \
286           echo "OK."; mkdir -p "$(top_builddir)/tmp/extras"; \
287         fi
288         rm -Rf $(top_builddir)/VLC-release.app
289         cp -R $(srcdir)/extras/MacOSX $(top_builddir)/tmp/extras
290         for i in AUTHORS COPYING README.MacOSX.rtf THANKS; do \
291           cp "$(srcdir)/$$i" $(top_builddir)/tmp; \
292         done
293         mkdir -p $(top_builddir)/tmp/modules/audio_output
294         mkdir -p $(top_builddir)/tmp/modules/gui/macosx
295         for i in \
296             about.h \
297             about.m \
298             applescript.h \
299             applescript.m \
300             controls.h \
301             controls.m \
302             equalizer.h \
303             equalizer.m \
304             intf.h \
305             intf.m \
306             macosx.m \
307             misc.h \
308             misc.m \
309             open.h \
310             open.m \
311             output.h \
312             output.m \
313             playlist.h \
314             playlist.m \
315             playlistinfo.h \
316             playlistinfo.m \
317             prefs_widgets.h \
318             prefs_widgets.m \
319             prefs.h \
320             prefs.m \
321             vout.h \
322             voutqt.m \
323             voutgl.m \
324             wizard.h \
325             wizard.m \
326             extended.h \
327             extended.m \
328             bookmarks.h \
329             bookmarks.m \
330             sfilters.h \
331             sfilters.m \
332             vout.m; do \
333           cp "$(srcdir)/modules/gui/macosx/$$i" \
334              $(top_builddir)/tmp/modules/gui/macosx; \
335         done
336         case $(target_triplet) in \
337           *darwin6*) cd $(top_builddir)/tmp/extras/MacOSX && pbxbuild -target vlc | grep -v '^\([ \t]\|$$\)'; \
338             cd ../../../; \
339             cp -R $(top_builddir)/tmp/extras/MacOSX/build/VLC.bundle \
340                   $(top_builddir)/VLC-release.app;; \
341           *darwin7*) cd $(top_builddir)/tmp/extras/MacOSX && xcodebuild -target vlc | grep -v '^\([ \t]\|$$\)'; \
342             cd ../../../; \
343             cp -R $(top_builddir)/tmp/extras/MacOSX/build/VLC.bundle \
344                   $(top_builddir)/VLC-release.app;; \
345           *darwin8*) cd $(top_builddir)/tmp/extras/MacOSX && xcodebuild -target vlc | grep -v '^\([ \t]\|$$\)'; \
346             cd ../../../; \
347             cp -R $(top_builddir)/tmp/extras/MacOSX/build/Default/VLC.bundle \
348                   $(top_builddir)/VLC-release.app;; \
349         esac
350         rm -Rf $(top_builddir)/tmp
351         $(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS
352         $(INSTALL) $(top_builddir)/vlc \
353                    $(top_builddir)/VLC-release.app/Contents/MacOS/VLC
354         ln -sf ./VLC $(top_builddir)/VLC-release.app/Contents/MacOS/clivlc
355         $(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS/modules
356         for i in "" `$(VLC_CONFIG) --target plugin` ; do \
357           if test -n "$$i" ; \
358             then $(INSTALL) "$$i$(LIBEXT)" \
359                            "$(top_builddir)/VLC-release.app/Contents/MacOS/modules" ; \
360           fi ; done
361         if test -d $(srcdir)/extras/contrib/vlc-lib; then \
362           mkdir -p $(top_builddir)/VLC-release.app/Contents/MacOS/lib ; \
363           for i in $(srcdir)/extras/contrib/vlc-lib/*.dylib ; do \
364             $(INSTALL) -m 644 $${i} $(top_builddir)/VLC-release.app/Contents/MacOS/lib/vlc_`basename $${i}` ; \
365           done ; \
366         fi
367         $(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS/share
368         $(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS/share/http
369         for i in $(srcdir)/share/http/* ; do \
370           $(INSTALL) -m 644 $${i} $(top_builddir)/VLC-release.app/Contents/MacOS/share/http/`basename $${i}` ; \
371         done ; \
372         $(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS/locale
373         for i in $(ALL_LINGUAS); do \
374           mkdir -p $(top_builddir)/VLC-release.app/Contents/MacOS/locale/$${i}/LC_MESSAGES ; \
375           cp $(srcdir)/po/$${i}.gmo $(top_builddir)/VLC-release.app/Contents/MacOS/locale/$${i}/LC_MESSAGES/vlc.mo || true ; \
376           mkdir -p $(top_builddir)/VLC-release.app/Contents/Resources/$${i}.lproj ; \
377           ln -sf ../English.lproj/InfoPlist.strings \
378               $(top_builddir)/VLC-release.app/Contents/Resources/$${i}.lproj ; \
379           ln -sf ../English.lproj/MainMenu.nib \
380               $(top_builddir)/VLC-release.app/Contents/Resources/$${i}.lproj ; \
381           ln -sf ../English.lproj/vlc.scriptTerminology \
382               $(top_builddir)/VLC-release.app/Contents/Resources/$${i}.lproj ; \
383         done
384         printf "APPLVLC#" >| $(top_builddir)/VLC-release.app/Contents/PkgInfo
385
386 VLC.app: vlc
387         @if test -e "$(top_builddir)/tmp"; then \
388           echo "Error: please remove $(top_builddir)/tmp, it is in the way"; \
389           false; \
390         else \
391           echo "OK."; mkdir -p "$(top_builddir)/tmp/extras"; \
392         fi
393         rm -Rf $(top_builddir)/VLC.app
394         cp -R $(srcdir)/extras/MacOSX $(top_builddir)/tmp/extras
395         for i in AUTHORS COPYING README.MacOSX.rtf THANKS; do \
396           cp "$(srcdir)/$$i" $(top_builddir)/tmp; \
397         done
398         mkdir -p $(top_builddir)/tmp/modules/audio_output
399         mkdir -p $(top_builddir)/tmp/modules/gui/macosx
400         for i in \
401             about.h \
402             about.m \
403             applescript.h \
404             applescript.m \
405             controls.h \
406             controls.m \
407             equalizer.h \
408             equalizer.m \
409             intf.h \
410             intf.m \
411             macosx.m \
412             misc.h \
413             misc.m \
414             open.h \
415             open.m \
416             output.h \
417             output.m \
418             playlist.h \
419             playlist.m \
420             playlistinfo.h \
421             playlistinfo.m \
422             prefs_widgets.h \
423             prefs_widgets.m \
424             prefs.h \
425             prefs.m \
426             vout.h \
427             voutqt.m \
428             voutgl.m \
429             wizard.h \
430             wizard.m \
431             extended.h \
432             extended.m \
433             bookmarks.h \
434             bookmarks.m \
435             sfilters.h \
436             sfilters.m \
437             vout.m; do \
438           cp "$(srcdir)/modules/gui/macosx/$$i" \
439              $(top_builddir)/tmp/modules/gui/macosx; \
440         done
441         case $(target_triplet) in \
442           *darwin6*) cd $(top_builddir)/tmp/extras/MacOSX && pbxbuild -target vlc | grep -v '^\([ \t]\|$$\)'; \
443             cd ../../../; \
444             cp -R $(top_builddir)/tmp/extras/MacOSX/build/VLC.bundle \
445                   $(top_builddir)/VLC.app;; \
446           *darwin7*) cd $(top_builddir)/tmp/extras/MacOSX && xcodebuild -target vlc | grep -v '^\([ \t]\|$$\)'; \
447             cd ../../../; \
448             cp -R $(top_builddir)/tmp/extras/MacOSX/build/VLC.bundle \
449                   $(top_builddir)/VLC.app;; \
450           *darwin8*) cd $(top_builddir)/tmp/extras/MacOSX && xcodebuild -target vlc | grep -v '^\([ \t]\|$$\)'; \
451             cd ../../../; \
452             cp -R $(top_builddir)/tmp/extras/MacOSX/build/Default/VLC.bundle \
453                   $(top_builddir)/VLC.app;; \
454         esac
455         rm -Rf $(top_builddir)/tmp
456         $(INSTALL) -d $(top_builddir)/VLC.app/Contents/MacOS
457         $(INSTALL) $(top_builddir)/vlc \
458                    $(top_builddir)/VLC.app/Contents/MacOS/VLC
459         ln -sf ./VLC $(top_builddir)/VLC.app/Contents/MacOS/clivlc
460         $(INSTALL) -d $(top_builddir)/VLC.app/Contents/MacOS/modules
461         for i in "" `$(VLC_CONFIG) --target plugin` ; do \
462           if test -n "$$i" ; \
463             then ln -sfn "`pwd`/$$i$(LIBEXT)" \
464                            "$(top_builddir)/VLC.app/Contents/MacOS/modules" ; \
465           fi ; done
466         if test -d $(srcdir)/extras/contrib/vlc-lib; then \
467           mkdir -p $(top_builddir)/VLC.app/Contents/MacOS/lib ; \
468           for i in $(srcdir)/extras/contrib/vlc-lib/*.dylib ; do \
469             ln -sfn `pwd`/$${i} $(top_builddir)/VLC.app/Contents/MacOS/lib/vlc_`basename $${i}` ; \
470           done ; \
471         fi
472         ln -sfn `pwd`/share $(top_builddir)/VLC.app/Contents/MacOS/
473         $(INSTALL) -d $(top_builddir)/VLC.app/Contents/MacOS/locale
474         for i in $(ALL_LINGUAS); do \
475           mkdir -p $(top_builddir)/VLC.app/Contents/MacOS/locale/$${i}/LC_MESSAGES ; \
476           ln -sfn `pwd`/po/$${i}.gmo $(top_builddir)/VLC.app/Contents/MacOS/locale/$${i}/LC_MESSAGES/vlc.mo || true ; \
477           mkdir -p $(top_builddir)/VLC.app/Contents/Resources/$${i}.lproj ; \
478           ln -sf ../English.lproj/InfoPlist.strings \
479               $(top_builddir)/VLC.app/Contents/Resources/$${i}.lproj ; \
480           ln -sf ../English.lproj/MainMenu.nib \
481               $(top_builddir)/VLC.app/Contents/Resources/$${i}.lproj ; \
482         done
483         printf "APPLVLC#" >| $(top_builddir)/VLC.app/Contents/PkgInfo
484 endif
485
486 if HAVE_WIN32
487 DATA_win32_rc = $(noinst_share_vlc_win32_rc_DATA)
488 noinst_share_vlc_win32_rc_DATA = share/vlc_win32_rc.$(OBJEXT)
489 noinst_share_vlc_win32_rcdir = $(libdir)
490 share/vlc_win32_rc.$(OBJEXT): share/vlc_win32_rc.rc
491         $(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 $@
492 endif
493
494
495 ###############################################################################
496 # Building specific source packages
497 ###############################################################################
498
499 dist-woody: distdir
500         $(remove_distdir_woody)
501         mv $(distdir) $(PACKAGE)-woody-$(VERSION)
502         $(srcdir)/toolbox --make-woody $(PACKAGE)-woody-$(VERSION)
503         $(AMTAR) chof - $(PACKAGE)-woody-$(VERSION) \
504           | GZIP=$(GZIP_ENV) gzip -c >$(PACKAGE)-woody-$(VERSION).tar.gz
505         $(remove_distdir_woody)
506
507 remove_distdir_woody = \
508   { test ! -d $(PACKAGE)-woody-$(VERSION) \
509     || { find $(PACKAGE)-woody-$(VERSION) -type d ! -perm -200 \
510            -exec chmod u+w {} ';' \
511          && rm -fr $(PACKAGE)-woody-$(VERSION); }; }
512
513 ###############################################################################
514 # Building architecture-specific binary packages
515 ###############################################################################
516
517 # XXX: this rule is probably only useful to you if you have exactly
518 # the same setup as me. Contact sam@zoy.org if you need to use it.
519 #
520 package-win32-base-debug:
521 # Check that tmp isn't in the way
522         @if test -e "$(top_builddir)/vlc-${VERSION}"; then \
523           echo "Error: please remove $(top_builddir)/vlc-${VERSION}, it is in the way"; \
524           false; \
525         else \
526           echo "OK."; mkdir -p "$(top_builddir)/vlc-${VERSION}"; \
527         fi
528
529 # Copy relevant files
530         cp "$(srcdir)/vlc.win32.nsi" "$(top_builddir)/vlc-${VERSION}/"
531         cp "$(top_builddir)/vlc$(EXEEXT)" "$(top_builddir)/vlc-${VERSION}/"
532         cp "$(top_srcdir)/vlc.exe.manifest" "$(top_builddir)/vlc-${VERSION}/"
533         $(STRIP) "$(top_builddir)/vlc-${VERSION}/vlc$(EXEEXT)"
534
535         for file in AUTHORS MAINTAINERS THANKS NEWS COPYING README ; \
536           do sed 's/@/_AT_/' < "$(srcdir)/$$file" > "$(top_builddir)/vlc-${VERSION}/$${file}.txt" ; \
537           unix2dos "$(top_builddir)/vlc-${VERSION}/$${file}.txt" ; done
538
539         mkdir -p "$(top_builddir)/vlc-${VERSION}/plugins"
540         for i in "" `$(VLC_CONFIG) --target plugin` ; do \
541           if test -n "$$i" ; then \
542             $(INSTALL) "$(top_builddir)/$$i$(LIBEXT)" \
543             "$(top_builddir)/vlc-${VERSION}/plugins/" ; \
544           fi ; done
545
546         mkdir $(top_builddir)/vlc-${VERSION}/locale
547         for i in $(ALL_LINGUAS); do \
548           mkdir -p "$(top_builddir)/vlc-${VERSION}/locale/$${i}/LC_MESSAGES" ; \
549           cp "$(srcdir)/po/$${i}.gmo" \
550             "$(top_builddir)/vlc-${VERSION}/locale/$${i}/LC_MESSAGES/vlc.mo" \
551             || true ; \
552         done
553
554         mkdir -p $(top_builddir)/vlc-${VERSION}/skins/fonts
555         for i in $(srcdir)/share/skins2/fonts/*.*; do \
556           cp $$i $(top_builddir)/vlc-${VERSION}/skins/fonts/ || true ; \
557         done
558         for i in $(srcdir)/share/skins2/*.*; do \
559           cp $$i $(top_builddir)/vlc-${VERSION}/skins/ || true ; \
560         done
561
562         mkdir -p "$(top_builddir)/vlc-${VERSION}/osdmenu"
563         cp $(srcdir)/share/osdmenu/*.* "$(top_builddir)/vlc-${VERSION}/osdmenu"
564         for dir in dvd dvd/selected dvd/unselect dvd/selection dvd/volume default default/selected default/selection default/volume;do \
565                 mkdir -p "$(top_builddir)/vlc-${VERSION}/osdmenu/$$dir"; \
566                 for file in $(srcdir)/share/osdmenu/$${dir}/*.*;do \
567                          cp $$file "$(top_builddir)/vlc-${VERSION}/osdmenu/$$dir" || true; \
568                 done; \
569         done
570         unix2dos $(top_builddir)/vlc-${VERSION}/osdmenu/*.cfg;
571         sed -i 's%share/osdmenu%osdmenu%g' $(top_builddir)/vlc-${VERSION}/osdmenu/*.cfg
572         sed -i 's%/%\\%g' $(top_builddir)/vlc-${VERSION}/osdmenu/*.cfg 
573
574         mkdir -p "$(top_builddir)/vlc-${VERSION}/http/images"
575         mkdir -p "$(top_builddir)/vlc-${VERSION}/http/requests"
576         mkdir -p "$(top_builddir)/vlc-${VERSION}/http/js"
577         mkdir -p "$(top_builddir)/vlc-${VERSION}/http/dialogs"
578         mkdir -p "$(top_builddir)/vlc-${VERSION}/http/old"
579         mkdir -p "$(top_builddir)/vlc-${VERSION}/http/old/vlm"
580         mkdir -p "$(top_builddir)/vlc-${VERSION}/http/old/admin"
581         cp $(srcdir)/share/http/*.html $(top_builddir)/vlc-${VERSION}/http/ ;
582         unix2dos $(top_builddir)/vlc-${VERSION}/http/*.html ;
583         cp $(srcdir)/share/http/*.css $(top_builddir)/vlc-${VERSION}/http/ ;
584         unix2dos $(top_builddir)/vlc-${VERSION}/http/*.css ;
585         cp $(srcdir)/share/http/js/*.js $(top_builddir)/vlc-${VERSION}/http/js/ ;
586         unix2dos $(top_builddir)/vlc-${VERSION}/http/js/*.js ;
587         cp $(srcdir)/share/http/dialogs/* $(top_builddir)/vlc-${VERSION}/http/dialogs/ ;
588         unix2dos $(top_builddir)/vlc-${VERSION}/http/dialogs/* ;
589         cp $(srcdir)/share/http/*.ico $(top_builddir)/vlc-${VERSION}/http/ ;
590         cp $(srcdir)/share/http/images/*.png $(top_builddir)/vlc-${VERSION}/http/images/
591         cp $(srcdir)/share/http/requests/*.xml $(top_builddir)/vlc-${VERSION}/http/requests/ ;
592         unix2dos $(top_builddir)/vlc-${VERSION}/http/requests/*.xml ;
593
594         cp $(srcdir)/share/http/old/*.html $(top_builddir)/vlc-${VERSION}/http/old/ ;
595         unix2dos $(top_builddir)/vlc-${VERSION}/http/old/*.html ;
596         cp $(srcdir)/share/http/old/*.ico $(top_builddir)/vlc-${VERSION}/http/old/ ;
597         cp $(srcdir)/share/http/old/*.css $(top_builddir)/vlc-${VERSION}/http/old/ ;
598         cp $(srcdir)/share/http/old/*.png $(top_builddir)/vlc-${VERSION}/http/old/ ;
599         cp $(srcdir)/share/http/old/vlm/*.html $(top_builddir)/vlc-${VERSION}/http/old/vlm/ ;
600         unix2dos $(top_builddir)/vlc-${VERSION}/http/old/vlm/*.html ;
601         cp $(srcdir)/share/http/old/admin/*.html $(top_builddir)/vlc-${VERSION}/http/old/admin/ ;
602         unix2dos $(top_builddir)/vlc-${VERSION}/http/old/admin/*.html ;
603
604         cp $(srcdir)/share/vlc48x48.ico $(top_builddir)/vlc-${VERSION}/ ;
605
606         mkdir -p "$(top_builddir)/vlc-${VERSION}/mozilla"
607 if BUILD_MOZILLA
608         cp $(top_builddir)/mozilla/*$(LIBEXT) $(top_builddir)/vlc-${VERSION}/mozilla/ ;
609         $(STRIP) $(top_builddir)/vlc-${VERSION}/mozilla/*$(LIBEXT);
610         cp $(top_builddir)/mozilla/vlcintf.xpt  $(top_builddir)/vlc-${VERSION}/mozilla/ ;
611 endif
612
613         mkdir -p "$(top_builddir)/vlc-${VERSION}/activex"
614 if BUILD_ACTIVEX
615         cp $(srcdir)/activex/README.TXT  $(top_builddir)/vlc-${VERSION}/activex/ ;
616         cp $(srcdir)/activex/test.html  $(top_builddir)/vlc-${VERSION}/activex/ ;
617         unix2dos $(top_builddir)/vlc-${VERSION}/activex/* ;
618
619         cp $(top_builddir)/activex/*$(LIBEXT) $(top_builddir)/vlc-${VERSION}/activex/ ;
620         $(STRIP) $(top_builddir)/vlc-${VERSION}/activex/*$(LIBEXT);
621 endif
622 # Rebase all those DLLs to speed up loading (need cygwin rebase)
623         if rebase -b 0x42 /dev/null >/dev/null 2>&1; then \
624                 find $(top_builddir)/vlc-${VERSION} -type f -name '*.dll' -print | rebase -b 0x70000000 -T -; \
625         fi
626
627 package-win32-base: package-win32-base-debug
628         for i in "" $(top_builddir)/vlc-${VERSION}/plugins/*$(LIBEXT) ; \
629           do if test -n "$$i" ; then $(STRIP) "$$i" ; fi ; done
630
631
632 package-win32-base-exe:
633 # Create package
634         if makensis -VERSION >/dev/null 2>&1; then \
635             MAKENSIS="makensis -DVERSION=${VERSION}"; \
636         elif [ -x "/cygdrive/c/Program Files/NSIS/makensis" ]; then \
637             MAKENSIS="/cygdrive/c/Program\ Files/NSIS/makensis /DVERSION=${VERSION}"; \
638         elif wine --version >dev/null 2>&1; then \
639             MAKENSIS="wine C:/Program\ Files/NSIS/makensis.exe /DVERSION=${VERSION}"; \
640         else \
641             echo 'Error: cannot locate makensis tool'; exit 1; \
642         fi; \
643         eval "$$MAKENSIS $(top_builddir)/vlc-${VERSION}/vlc.win32.nsi"
644
645 package-win32-base-exe-cygwin: package-win32-base-exe
646 # Create package
647
648 package-win32-base-exe-linux:
649 # Create package
650         makensis -DVERSION=${VERSION} $(top_builddir)/vlc-${VERSION}/vlc.win32.nsi
651
652 package-win32-base-zip:
653 # Create package 
654         zip -r vlc-${VERSION}-win32.zip vlc-${VERSION}
655
656 package-win32-exe: package-win32-base package-win32-base-exe
657 # Clean up
658         rm -Rf $(top_builddir)/vlc-${VERSION}
659
660 package-win32-exe-linux: package-win32-base package-win32-base-exe-linux
661 # Clean up
662         rm -Rf $(top_builddir)/vlc-${VERSION}
663
664 package-win32-zip: package-win32-base package-win32-base-zip
665 # Clean up
666         rm -Rf $(top_builddir)/vlc-${VERSION}
667
668 package-win32: package-win32-base package-win32-base-exe package-win32-base-zip
669 # Clean up
670         rm -Rf $(top_builddir)/vlc-${VERSION}
671
672 package-wince-base:
673 # Check that tmp isn't in the way
674         @if test -e "$(top_builddir)/vlc-${VERSION}"; then \
675           echo "Error: please remove $(top_builddir)/vlc-${VERSION}, it is in the way"; \
676           false; \
677         else \
678           echo "OK."; mkdir -p "$(top_builddir)/vlc-${VERSION}"; \
679         fi
680
681 # Copy relevant files
682         cp "$(top_builddir)/vlc$(EXEEXT)" "$(top_builddir)/vlc-${VERSION}/"
683         cp "$(top_srcdir)/vlc.exe.manifest" "$(top_builddir)/vlc-${VERSION}/"
684         $(STRIP) "$(top_builddir)/vlc-${VERSION}/vlc$(EXEEXT)"
685
686         for file in AUTHORS MAINTAINERS THANKS NEWS COPYING README ; \
687           do sed 's/@/_AT_/' < "$(srcdir)/$$file" > "$(top_builddir)/vlc-${VERSION}/$${file}.txt" ; \
688           unix2dos "$(top_builddir)/vlc-${VERSION}/$${file}.txt" ; done
689
690         mkdir $(top_builddir)/vlc-${VERSION}/locale
691         for i in $(ALL_LINGUAS); do \
692           mkdir -p "$(top_builddir)/vlc-${VERSION}/locale/$${i}/LC_MESSAGES" ; \
693           cp "$(srcdir)/po/$${i}.gmo" \
694             "$(top_builddir)/vlc-${VERSION}/locale/$${i}/LC_MESSAGES/vlc.mo" \
695             || true ; \
696         done
697
698
699         mkdir -p "$(top_builddir)/vlc-${VERSION}/http/images"
700         mkdir -p "$(top_builddir)/vlc-${VERSION}/http/requests"
701         mkdir -p "$(top_builddir)/vlc-${VERSION}/http/js"
702         mkdir -p "$(top_builddir)/vlc-${VERSION}/http/dialogs"
703         mkdir -p "$(top_builddir)/vlc-${VERSION}/http/old"
704         mkdir -p "$(top_builddir)/vlc-${VERSION}/http/old/vlm"
705         mkdir -p "$(top_builddir)/vlc-${VERSION}/http/old/admin"
706         cp $(srcdir)/share/http/*.html $(top_builddir)/vlc-${VERSION}/http/ ;
707         unix2dos $(top_builddir)/vlc-${VERSION}/http/*.html ;
708         cp $(srcdir)/share/http/*.css $(top_builddir)/vlc-${VERSION}/http/ ;
709         unix2dos $(top_builddir)/vlc-${VERSION}/http/*.css ;
710         cp $(srcdir)/share/http/js/*.js $(top_builddir)/vlc-${VERSION}/http/js/ ;
711         unix2dos $(top_builddir)/vlc-${VERSION}/http/js/*.js ;
712         cp $(srcdir)/share/http/dialogs/* $(top_builddir)/vlc-${VERSION}/http/dialogs/ ;
713         unix2dos $(top_builddir)/vlc-${VERSION}/http/dialogs/* ;
714         cp $(srcdir)/share/http/*.ico $(top_builddir)/vlc-${VERSION}/http/ ;
715         cp $(srcdir)/share/http/images/*.png $(top_builddir)/vlc-${VERSION}/http/images/
716         cp $(srcdir)/share/http/requests/*.xml $(top_builddir)/vlc-${VERSION}/http/requests/ ;
717         unix2dos $(top_builddir)/vlc-${VERSION}/http/requests/*.xml ;
718
719         cp $(srcdir)/share/http/old/*.html $(top_builddir)/vlc-${VERSION}/http/old/ ;
720         unix2dos $(top_builddir)/vlc-${VERSION}/http/old/*.html ;
721         cp $(srcdir)/share/http/old/*.ico $(top_builddir)/vlc-${VERSION}/http/old/ ;
722         cp $(srcdir)/share/http/old/*.css $(top_builddir)/vlc-${VERSION}/http/old/ ;
723         cp $(srcdir)/share/http/old/*.png $(top_builddir)/vlc-${VERSION}/http/old/ ;
724         cp $(srcdir)/share/http/old/vlm/*.html $(top_builddir)/vlc-${VERSION}/http/old/vlm/ ;
725         unix2dos $(top_builddir)/vlc-${VERSION}/http/old/vlm/*.html ;
726         cp $(srcdir)/share/http/old/admin/*.html $(top_builddir)/vlc-${VERSION}/http/old/admin/ ;
727         unix2dos $(top_builddir)/vlc-${VERSION}/http/old/admin/*.html ;
728
729         cp $(srcdir)/share/vlc48x48.ico $(top_builddir)/vlc-${VERSION}/ ;
730
731 if BUILD_MOZILLA
732         mkdir -p "$(top_builddir)/vlc-${VERSION}/mozilla"
733         cp $(top_builddir)/mozilla/*$(LIBEXT) $(top_builddir)/vlc-${VERSION}/mozilla/ ;
734         $(STRIP) $(top_builddir)/vlc-${VERSION}/mozilla/*$(LIBEXT);
735         cp $(top_builddir)/mozilla/vlcintf.xpt  $(top_builddir)/vlc-${VERSION}/mozilla/ ;
736 endif
737
738 if BUILD_ACTIVEX
739         mkdir -p "$(top_builddir)/vlc-${VERSION}/activex"
740         cp $(srcdir)/activex/README.TXT  $(top_builddir)/vlc-${VERSION}/activex/ ;
741         cp $(srcdir)/activex/test.html  $(top_builddir)/vlc-${VERSION}/activex/ ;
742         unix2dos $(top_builddir)/vlc-${VERSION}/activex/* ;
743
744         cp $(top_builddir)/activex/*$(LIBEXT) $(top_builddir)/vlc-${VERSION}/activex/ ;
745         $(STRIP) $(top_builddir)/vlc-${VERSION}/activex/*$(LIBEXT);
746 endif
747 # Rebase all those DLLs to speed up loading (need cygwin rebase)
748         if rebase -b 0x42 /dev/null >/dev/null 2>&1; then \
749                 find $(top_builddir)/vlc-${VERSION} -type f -name '*.dll' -print | rebase -b 0x70000000 -T -; \
750         fi
751
752 package-wince-base-zip:
753 # Create package 
754         zip -r vlc-${VERSION}-wince.zip vlc-${VERSION}
755
756 package-wince: package-wince-base  package-wince-base-zip
757 # Clean up
758         rm -Rf $(top_builddir)/vlc-${VERSION}
759
760
761 package-beos:
762 # Check that tmp isn't in the way
763         @if test -e $(srcdir)/tmp; then \
764           echo "Error: please remove $(srcdir)/tmp, it is in the way"; \
765           false ; \
766         else \
767           echo "OK." ; mkdir $(srcdir)/tmp ; \
768         fi
769
770 # Copy relevant files
771         mkdir -p $(srcdir)/tmp/vlc ;
772         cd $(srcdir) && cp -R vlc-bundle/* AUTHORS COPYING ChangeLog README \
773           THANKS NEWS tmp/vlc/ ;
774
775 # Create debug package
776         xres -o $(srcdir)/tmp/vlc/vlc $(srcdir)/share/vlc_beos.rsrc ;
777         find $(srcdir)/tmp/vlc -exec mimeset -f {} \; ;
778         mv $(srcdir)/tmp/vlc $(srcdir)/tmp/vlc-${VERSION} ;
779         (cd $(srcdir)/tmp ; zip -9 -r vlc-${VERSION}-BeOS-debug.zip vlc-${VERSION} )
780         mv $(srcdir)/tmp/vlc-${VERSION}-BeOS-debug.zip $(srcdir)/ ;
781         mv $(srcdir)/tmp/vlc-${VERSION} $(srcdir)/tmp/vlc ;
782
783 # Create normal package
784         $(STRIP) --strip-debug --strip-unneeded $(srcdir)/tmp/vlc/vlc ;
785         find $(srcdir)/tmp/vlc -name 'lib*.so' -exec $(STRIP) \
786           --strip-debug --strip-unneeded "{}" \; ;
787         xres -o $(srcdir)/tmp/vlc/vlc $(srcdir)/share/vlc_beos.rsrc ;
788         find $(srcdir)/tmp/vlc -exec mimeset -f {} \; ;
789         mv $(srcdir)/tmp/vlc $(srcdir)/tmp/vlc-${VERSION} ;
790         (cd $(srcdir)/tmp ; zip -9 -r vlc-${VERSION}-BeOS.zip vlc-${VERSION} )
791         mv $(srcdir)/tmp/vlc-${VERSION}-BeOS.zip $(srcdir)/ ;
792
793 # Clean up
794         rm -Rf $(srcdir)/tmp ;
795
796 package-macosx:
797 # Check that the temporary location isn't in the way
798         @if test -e "$(top_builddir)/vlc-${VERSION}/"; then \
799           rm -Rf "$(top_builddir)/vlc-${VERSION}/" ; \
800         fi
801
802         echo "Create package directory: vlc-${VERSION}/";
803         mkdir -p "$(top_builddir)/vlc-${VERSION}/";
804
805 # Copy relevant files 
806         cp -R "$(top_builddir)/VLC-release.app" "$(top_builddir)/vlc-${VERSION}/VLC.app"
807         cd "$(srcdir)" && cp AUTHORS COPYING ChangeLog README README.MacOSX.rtf THANKS NEWS $(top_builddir)/vlc-${VERSION}/ && cp -R extras/MacOSX/Delete_Preferences.app $(top_builddir)/vlc-${VERSION}/
808
809 # Create disk image 
810         echo "Creating disk image" ;
811         rm -f "$(top_builddir)/vlc-${VERSION}.dmg" ;
812         hdiutil create -srcfolder "$(top_builddir)/vlc-${VERSION}" \
813           "$(top_builddir)/vlc-${VERSION}.dmg" -format UDZO -quiet ;
814         echo; echo "Disk image creation completed:" ;
815         ls -la "$(top_builddir)/vlc-${VERSION}.dmg" ; echo ;
816
817 # Clean up
818         rm -Rf "$(top_builddir)/vlc-${VERSION}" ;
819
820 package-translations:
821         @if test -e "$(srcdir)/vlc-translations-${VERSION}"; then \
822           echo "Error: please remove $(srcdir)/vlc-translations-${VERSION}, it is in the way"; \
823           false; \
824         else \
825           echo "OK."; mkdir -p "$(srcdir)/vlc-translations-${VERSION}"; \
826         fi
827 # Copy translations
828         for i in $(ALL_LINGUAS); do \
829           cp "$(srcdir)/po/$${i}.po" \
830             "$(srcdir)/vlc-translations-${VERSION}/$${i}.po" \
831             || true ; \
832         done
833         cp "$(srcdir)/doc/translations.txt" \
834           "$(srcdir)/vlc-translations-${VERSION}/README.txt"
835
836         echo "#!/bin/sh" >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
837         echo "" >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
838         echo 'if test $$# != 1; then' >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
839         echo "  echo \"Usage: convert-po.sh <.po file>\"" >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
840         echo "  exit 1" >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
841         echo "fi" >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
842         echo "" >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
843         echo 'msgfmt --statistics -o vlc.mo $$1' >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
844
845         $(AMTAR) chof - $(srcdir)/vlc-translations-$(VERSION) \
846           | GZIP=$(GZIP_ENV) gzip -c >$(srcdir)/vlc-translations-$(VERSION).tar.gz
847
848 ###############################################################################
849 # PO translation files update
850 ###############################################################################
851 .PHONY: update-po
852
853 update-po:
854         rm -f $(top_srcdir)/po/POTFILES.in
855         { \
856           cd $(top_srcdir) ; \
857           echo "# automatically created by make update-po" ; \
858           echo "" ; \
859           echo "# main sources" ; \
860           find include src -name '*.[chm]' -o -name '*.[ch]pp' \
861             | grep -v '\(vlc_symbols\|misc/modules_\|src/misc/version.c\)' \
862             | sort ; \
863           echo "" ; \
864           echo "# modules" ; \
865           find modules -name '*.[chm]' -o -name '*.[ch]pp' \
866             | grep -v '\(\.moc\.\|gui/gtk2/\)' \
867             | sort ; \
868         } > $(top_srcdir)/po/POTFILES.in
869         rm -f $(top_srcdir)/po/vlc.pot
870         cd po && $(MAKE) POTFILES vlc.pot update-po
871
872 #cd po && $(MAKE) update-po
873
874 ###############################################################################
875 # Stamp rules
876 ###############################################################################
877 stamp-builtin: FORCE
878         @for dep in "" `$(VLC_CONFIG) --target builtin`; do \
879           if test "$${dep}" -nt "$(top_builddir)/vlc$(EXEEXT)"; then \
880             rm -f $@; \
881             break; \
882           fi; \
883         done
884         @if test ! -f $@; then printf "" > $@; fi
885
886 ###############################################################################
887 # Enforce Mac OS X deployment target environment variable
888 ###############################################################################
889 macosx-sdk: Makefile.in $(HEADERS_include) vlc-config vlc-api.pl
890         export MACOSX_DEPLOYMENT_TARGET=$(MACOSX_DEPLOYMENT_TARGET)
891
892 ###############################################################################
893 # Force rule
894 ###############################################################################
895 FORCE: