1 ###############################################################################
2 # Automake targets and declarations
3 ###############################################################################
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 SUBDIRS = intl modules po . mozilla share m4 doc
15 DIST_SUBDIRS = $(SUBDIRS) src debian ipkg lib autotools
35 # Tell aclocal to use -I m4. Wonder if it really works.
36 ACLOCAL_AMFLAGS = -I m4
38 # XXX: these flags could be set in configure.ac, but we set them here
39 # because old versions of automake don't support them in configure.ac.
40 AUTOMAKE_OPTIONS = dist-bzip2 subdir-objects
42 ###############################################################################
44 ###############################################################################
47 include/vlc_symbols.h \
48 src/misc/modules_builtin.h \
49 src/misc/modules_plugin.h \
52 pkgincludedir = $(includedir)/vlc
54 dist_pkginclude_HEADERS = \
59 include/vlc/decoder.h \
64 noinst_HEADERS = $(HEADERS_include) $(HEADERS_include_built)
67 include/aout_internal.h \
68 include/audio_output.h \
69 include/beos_specific.h \
70 include/configuration.h \
71 include/darwin_specific.h \
75 include/input_ext-dec.h \
76 include/input_ext-intf.h \
77 include/input_ext-plugins.h \
78 include/intf_eject.h \
84 include/modules_inner.h \
87 include/os_specific.h \
88 include/stream_control.h \
89 include/stream_output.h \
91 include/video_output.h \
93 include/vlc_block_helper.h \
95 include/vlc_common.h \
96 include/vlc_config.h \
100 include/vlc_interface.h \
102 include/vlc_messages.h \
103 include/vlc_objects.h \
104 include/vlc_playlist.h \
105 include/vlc_threads.h \
106 include/vlc_threads_funcs.h \
107 include/vlc_video.h \
108 include/vout_synchro.h \
109 include/win32_specific.h \
113 HEADERS_include_built = \
114 include/vlc_symbols.h \
117 include/vlc_symbols.h: Makefile $(HEADERS_include)
118 srcdir=$(srcdir) $(srcdir)/toolbox --update-includes
120 src/misc/modules_plugin.h: Makefile src/misc/modules_plugin.h.in $(HEADERS_include)
121 srcdir=$(srcdir) $(srcdir)/toolbox --update-includes
123 src/misc/modules_builtin.h: Makefile src/misc/modules_builtin.h.in
124 srcdir=$(srcdir) $(srcdir)/toolbox --update-includes
126 # These dependencies are mandatory
127 $(SOURCES): include/vlc_symbols.h
128 $(SOURCES_libvlc): src/misc/modules_plugin.h src/misc/modules_builtin.h $(LIB_intl)
130 ###############################################################################
131 # Optional libintl - FIXME, bad dependencies
132 ###############################################################################
134 intl/libintl.a: FORCE
135 cd $(top_builddir)/intl && $(MAKE) $(AM_MAKEFLAGS)
138 LIB_intl = intl/libintl.a
141 ###############################################################################
143 ###############################################################################
146 extras/MacOSX/Resources/English.lproj/MainMenu.nib/classes.nib \
147 extras/MacOSX/Resources/English.lproj/MainMenu.nib/info.nib \
148 extras/MacOSX/Resources/English.lproj/MainMenu.nib/objects.nib \
149 extras/MacOSX/Resources/English.lproj/InfoPlist.strings \
150 extras/MacOSX/Resources/English.lproj/vlc.scriptTerminology \
151 extras/MacOSX/Resources/a52.icns \
152 extras/MacOSX/Resources/aac.icns \
153 extras/MacOSX/Resources/asf.icns \
154 extras/MacOSX/Resources/asx.icns \
155 extras/MacOSX/Resources/avi.icns \
156 extras/MacOSX/Resources/bin.icns \
157 extras/MacOSX/Resources/cue.icns \
158 extras/MacOSX/Resources/dat.icns \
159 extras/MacOSX/Resources/divx.icns \
160 extras/MacOSX/Resources/dv.icns \
161 extras/MacOSX/Resources/generic.icns \
162 extras/MacOSX/Resources/m3u.icns \
163 extras/MacOSX/Resources/mov.icns \
164 extras/MacOSX/Resources/mp3.icns \
165 extras/MacOSX/Resources/mp4.icns \
166 extras/MacOSX/Resources/mpeg.icns \
167 extras/MacOSX/Resources/mpeg1.icns \
168 extras/MacOSX/Resources/mpeg2.icns \
169 extras/MacOSX/Resources/mpeg4.icns \
170 extras/MacOSX/Resources/mpg.icns \
171 extras/MacOSX/Resources/ogg.icns \
172 extras/MacOSX/Resources/ogm.icns \
173 extras/MacOSX/Resources/pls.icns \
174 extras/MacOSX/Resources/srt.icns \
175 extras/MacOSX/Resources/sub.icns \
176 extras/MacOSX/Resources/vlc.icns \
177 extras/MacOSX/Resources/vob.icns \
178 extras/MacOSX/Resources/wma.icns \
179 extras/MacOSX/Resources/wmv.icns \
180 extras/MacOSX/Resources/back.png \
181 extras/MacOSX/Resources/begin.png \
182 extras/MacOSX/Resources/end.png \
183 extras/MacOSX/Resources/forw.png \
184 extras/MacOSX/Resources/list.png \
185 extras/MacOSX/Resources/pause.png \
186 extras/MacOSX/Resources/play.png \
187 extras/MacOSX/Resources/prefs.png \
188 extras/MacOSX/Resources/slow.png \
189 extras/MacOSX/Resources/stop.png \
190 extras/MacOSX/Resources/vlc_hg.png \
191 extras/MacOSX/Resources/about_bg.png \
192 extras/MacOSX/Resources/vlc.scriptSuite \
193 extras/MacOSX/Resources/README \
194 extras/MacOSX/vlc.pbproj/project.pbxproj \
195 extras/MacOSX/macosx-dmg \
198 ###############################################################################
199 # MS Visual Studio and eMbedded Visual Studio projects
200 ###############################################################################
205 msvc/plugins.dsp.in \
208 msvc/modules_builtin_msvc.h \
215 evc/modules_builtin_evc.h \
219 mv $(distdir)/vlc.ebuild $(distdir)/vlc-${VERSION}.ebuild
220 cd $(distdir) && srcdir=$(srcdir) $(srcdir)/toolbox --update-vc
222 ###############################################################################
224 ###############################################################################
226 bin_SCRIPTS = vlc-config
228 lib_LIBRARIES = lib/libvlc.a $(LIBRARIES_libvlc_pic)
230 lib_libvlc_a_SOURCES = $(SOURCES_libvlc)
231 dist_lib_libvlc_a_SOURCES = src/misc/modules_plugin.h
232 lib_libvlc_a_CFLAGS = `$(VLC_CONFIG) --cflags vlc`
233 lib_libvlc_a_CXXFLAGS = `$(VLC_CONFIG) --cxxflags vlc`
234 lib_libvlc_a_OBJCFLAGS = `$(VLC_CONFIG) --objcflags vlc`
236 lib_libvlc_pic_a_SOURCES = $(SOURCES_libvlc)
237 lib_libvlc_pic_a_CFLAGS = `$(VLC_CONFIG) --cflags vlc pic`
238 lib_libvlc_pic_a_CXXFLAGS = `$(VLC_CONFIG) --cxxflags vlc pic`
239 lib_libvlc_pic_a_OBJCFLAGS = `$(VLC_CONFIG) --objcflags vlc pic`
242 OPT_SOURCES_libvlc_beos = $(SOURCES_libvlc_beos)
245 OPT_SOURCES_libvlc_darwin = $(SOURCES_libvlc_darwin)
248 OPT_SOURCES_libvlc_win32 = $(SOURCES_libvlc_win32)
251 OPT_SOURCES_libvlc_dirent = $(SOURCES_libvlc_dirent)
254 OPT_SOURCES_libvlc_getopt = $(SOURCES_libvlc_getopt)
258 LIBRARIES_libvlc_pic = lib/libvlc_pic.a
263 $(SOURCES_libvlc_beos) \
264 $(SOURCES_libvlc_darwin) \
265 $(SOURCES_libvlc_win32) \
266 $(SOURCES_libvlc_dirent) \
267 $(SOURCES_libvlc_getopt) \
270 SOURCES_libvlc_beos = \
271 src/misc/beos_specific.cpp \
274 SOURCES_libvlc_darwin = \
275 src/misc/darwin_specific.m \
278 SOURCES_libvlc_win32 = \
279 src/misc/win32_specific.c \
282 SOURCES_libvlc_dirent = \
283 src/extras/dirent.c \
284 src/extras/dirent.h \
287 SOURCES_libvlc_getopt = \
288 src/extras/getopt.c \
289 src/extras/getopt.h \
290 src/extras/getopt1.c \
293 SOURCES_libvlc_common = \
296 src/interface/interface.c \
297 src/interface/intf_eject.c \
298 src/playlist/playlist.c \
302 src/input/subtitles.c \
303 src/input/input_ext-plugins.c \
304 src/input/input_ext-dec.c \
305 src/input/input_ext-intf.c \
306 src/input/input_dec.c \
307 src/input/input_programs.c \
308 src/input/input_clock.c \
309 src/input/input_info.c \
310 src/video_output/video_output.c \
311 src/video_output/vout_pictures.c \
312 src/video_output/vout_pictures.h \
313 src/video_output/video_text.c \
314 src/video_output/vout_subpictures.c \
315 src/video_output/vout_synchro.c \
316 src/audio_output/common.c \
317 src/audio_output/dec.c \
318 src/audio_output/filters.c \
319 src/audio_output/input.c \
320 src/audio_output/mixer.c \
321 src/audio_output/output.c \
322 src/audio_output/intf.c \
323 src/stream_output/stream_output.c \
330 src/misc/configuration.c \
331 src/misc/iso_lang.c \
332 src/misc/iso-639_def.h \
333 src/misc/messages.c \
335 src/misc/variables.c \
341 $(SOURCES_libvlc_common) \
342 $(OPT_SOURCES_libvlc_beos) \
343 $(OPT_SOURCES_libvlc_darwin) \
344 $(OPT_SOURCES_libvlc_win32) \
345 $(OPT_SOURCES_libvlc_dirent) \
346 $(OPT_SOURCES_libvlc_getopt) \
349 ###############################################################################
351 ###############################################################################
355 vlc_SOURCES = src/vlc.c
357 vlc_LDFLAGS = `$(VLC_CONFIG) --libs vlc builtin`
358 vlc_LDADD = lib/libvlc.a $(DATA_win32_rc) $(LIB_intl)
359 vlc_CFLAGS = `$(VLC_CONFIG) --cflags vlc`
361 # We use DEPENDENCIES_vlc instead of vlc_DEPENDENCIES because of an
362 # old automake-1.5 bug (automake/279).
363 DEPENDENCIES_vlc = lib/libvlc.a $(DATA_win32_rc) $(LIB_intl)
365 vlc$(EXEEXT): $(vlc_OBJECTS) $(DEPENDENCIES_vlc) stamp-builtin
366 @rm -f $(top_builddir)/vlc$(EXEEXT)
367 @case `$(VLC_CONFIG) --linkage vlc builtin` in \
368 c++) echo $(CXXLINK) $(vlc_OBJECTS) $(vlc_LDADD) $(vlc_LDFLAGS) $(LIBS) ; $(CXXLINK) $(vlc_OBJECTS) $(vlc_LDADD) $(vlc_LDFLAGS) $(LIBS) ;; \
369 objc) echo $(OBJCLINK) $(vlc_OBJECTS) $(vlc_LDADD) $(vlc_LDFLAGS) $(LIBS) ; $(OBJCLINK) $(vlc_OBJECTS) $(vlc_LDADD) $(vlc_LDFLAGS) $(LIBS) ;; \
370 c|*) echo $(LINK) $(vlc_OBJECTS) $(vlc_LDADD) $(vlc_LDFLAGS) $(LIBS) ; $(LINK) $(vlc_OBJECTS) $(vlc_LDADD) $(vlc_LDFLAGS) $(LIBS) ;; \
374 xres -o $@ $(srcdir)/share/vlc_beos.rsrc
376 rm -Rf $(srcdir)/locale ; mkdir -p "$(srcdir)/locale"
377 for i in $(ALL_LINGUAS); do \
378 mkdir -p "$(srcdir)/locale/$${i}/LC_MESSAGES" ; \
379 cp "$(srcdir)/po/$${i}.gmo" \
380 "$(srcdir)/locale/$${i}/LC_MESSAGES/vlc.mo" || true ; \
384 # Install the modules and the symlinks
386 for i in "" `$(VLC_CONFIG) --target plugin` ; do if test -n "$$i" ; then \
387 echo $(INSTALL) -m 755 "$$i$(LIBEXT)" "$(DESTDIR)$(libdir)/vlc/`echo $$i | sed -e 's,.*modules/\([^/]*\).*,\1,'`" ; \
388 $(INSTALL) -m 755 "$$i$(LIBEXT)" "$(DESTDIR)$(libdir)/vlc/`echo $$i | sed -e 's,.*modules/\([^/]*\).*,\1,'`" ; \
390 for i in "" `$(VLC_CONFIG) --target builtin` ; do if test -n "$$i" ; then \
391 echo $(INSTALL) -m 644 "$$i" "$(DESTDIR)$(libdir)/vlc" ; \
392 $(INSTALL) -m 644 "$$i" "$(DESTDIR)$(libdir)/vlc" ; \
395 for i in "" `$(VLC_CONFIG) --target builtin pic` ; do if test -n "$$i" ; then \
396 echo $(INSTALL) -m 644 "$$i" "$(DESTDIR)$(libdir)/vlc" ; \
397 $(INSTALL) -m 644 "$$i" "$(DESTDIR)$(libdir)/vlc" ; \
400 for i in "" $(ALIASES) ; do if test -n "$$i" ; then \
401 rm -f "$(DESTDIR)$(bindir)/$$i" && \
402 ln -s vlc "$(DESTDIR)$(bindir)/$$i" ; \
406 # Create the MacOS X app
407 vlc_app_DATA = VLC.app
408 vlc_appdir = $(bindir)
410 @if test -e "$(top_builddir)/tmp"; then \
411 echo "Error: please remove $(top_builddir)/tmp, it is in the way"; \
414 echo "OK."; mkdir -p "$(top_builddir)/tmp/extras"; \
416 rm -Rf $(top_builddir)/VLC.app
417 cp -r $(srcdir)/extras/MacOSX $(top_builddir)/tmp/extras
418 for i in AUTHORS COPYING README.MacOSX.rtf THANKS; do \
419 cp "$(srcdir)/$$i" $(top_builddir)/tmp; \
421 mkdir -p $(top_builddir)/tmp/modules/audio_output
422 cp $(srcdir)/modules/audio_output/coreaudio.c \
423 $(top_builddir)/tmp/modules/audio_output/coreaudio.c
424 mkdir -p $(top_builddir)/tmp/modules/gui/macosx
449 cp "$(srcdir)/modules/gui/macosx/$$i" \
450 $(top_builddir)/tmp/modules/gui/macosx; \
452 cd $(top_builddir)/tmp/extras/MacOSX && pbxbuild -target vlc | grep -v '^\([ \t]\|$$\)'
453 cp -r $(top_builddir)/tmp/extras/MacOSX/build/vlc.bundle \
454 $(top_builddir)/VLC.app
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 $(INSTALL) -d $(top_builddir)/VLC.app/Contents/MacOS/modules
460 for i in "" `$(VLC_CONFIG) --target plugin` ; do \
462 then $(INSTALL) "$$i$(LIBEXT)" \
463 "$(top_builddir)/VLC.app/Contents/MacOS/modules" ; \
465 $(INSTALL) -d $(top_builddir)/VLC.app/Contents/MacOS/share
466 $(INSTALL) -d $(top_builddir)/VLC.app/Contents/MacOS/share/http
467 $(INSTALL) -m 644 $(srcdir)/share/http/*.html \
468 $(top_builddir)/VLC.app/Contents/MacOS/share/http
469 $(INSTALL) -d $(top_builddir)/VLC.app/Contents/MacOS/share/http/admin
470 $(INSTALL) -m 644 $(srcdir)/share/http/admin/*.html \
471 $(top_builddir)/VLC.app/Contents/MacOS/share/http/admin
472 $(INSTALL) -d $(top_builddir)/VLC.app/Contents/MacOS/locale
473 for i in $(ALL_LINGUAS); do \
474 mkdir -p $(top_builddir)/VLC.app/Contents/MacOS/locale/$${i}/LC_MESSAGES ; \
475 cp $(srcdir)/po/$${i}.gmo $(top_builddir)/VLC.app/Contents/MacOS/locale/$${i}/LC_MESSAGES/vlc.mo || true ; \
476 mkdir -p $(top_builddir)/VLC.app/Contents/Resources/$${i}.lproj ; \
477 ln -sf ../English.lproj/InfoPlist.strings \
478 $(top_builddir)/VLC.app/Contents/Resources/$${i}.lproj ; \
479 ln -sf ../English.lproj/MainMenu.nib \
480 $(top_builddir)/VLC.app/Contents/Resources/$${i}.lproj ; \
481 ln -sf ../English.lproj/vlc.scriptTerminology \
482 $(top_builddir)/VLC.app/Contents/Resources/$${i}.lproj ; \
484 printf "APPLVLC#" >| $(top_builddir)/VLC.app/Contents/PkgInfo
488 DATA_win32_rc = $(noinst_share_vlc_win32_rc_DATA)
489 noinst_share_vlc_win32_rc_DATA = share/vlc_win32_rc.$(OBJEXT)
490 noinst_share_vlc_win32_rcdir = $(libdir)
491 share/vlc_win32_rc.$(OBJEXT): share/vlc_win32_rc.rc
492 $(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 $@
495 ###############################################################################
496 # Building specific source packages
497 ###############################################################################
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)
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); }; }
513 ###############################################################################
514 # Building architecture-specific binary packages
515 ###############################################################################
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.
520 # Check that tmp isn't in the way
522 @if test -e "$(srcdir)/vlc-${VERSION}"; then \
523 echo "Error: please remove $(srcdir)/vlc-${VERSION}, it is in the way"; \
526 echo "OK."; mkdir -p "$(srcdir)/vlc-${VERSION}"; \
528 # Create installation script
529 cp "$(srcdir)/install-win32" "$(srcdir)/vlc-${VERSION}/nsi"
530 # Copy relevant files
531 cp "$(top_builddir)/vlc$(EXEEXT)" "$(srcdir)/vlc-${VERSION}/"
532 $(STRIP) "$(srcdir)/vlc-${VERSION}/vlc$(EXEEXT)"
533 for file in AUTHORS MAINTAINERS THANKS NEWS COPYING README ; \
534 do cp "$(srcdir)/$$file" "$(srcdir)/vlc-${VERSION}/$${file}.txt" ; \
535 unix2dos "$(srcdir)/vlc-${VERSION}/$${file}.txt" ; done
537 mkdir -p "$(srcdir)/vlc-${VERSION}/plugins"
538 for i in "" `$(VLC_CONFIG) --target plugin` ; do \
539 if test -n "$$i" ; then \
540 $(INSTALL) "$(srcdir)/$$i$(LIBEXT)" \
541 "$(srcdir)/vlc-${VERSION}/plugins/" ; \
544 for i in "" $(srcdir)/vlc-${VERSION}/plugins/*$(LIBEXT) ; \
545 do if test -n "$$i" ; then $(STRIP) "$$i" ; fi ; done
547 mkdir $(srcdir)/vlc-${VERSION}/locale
548 for i in $(ALL_LINGUAS); do \
549 mkdir -p "$(srcdir)/vlc-${VERSION}/locale/$${i}/LC_MESSAGES" ; \
550 cp "$(srcdir)/po/$${i}.gmo" \
551 "$(srcdir)/vlc-${VERSION}/locale/$${i}/LC_MESSAGES/vlc.mo" \
555 mkdir -p $(srcdir)/vlc-${VERSION}/skins/default
556 for i in $(srcdir)/share/skins/default/*.*; do \
557 cp $$i $(srcdir)/vlc-${VERSION}/skins/default/ || true ; \
559 for i in $(srcdir)/doc/skins/*.txt; do \
560 cp $$i $(srcdir)/vlc-${VERSION}/skins/ || true ; \
563 mkdir -p "$(srcdir)/vlc-${VERSION}/http/admin"
564 cp $(srcdir)/share/http/*.html $(srcdir)/vlc-${VERSION}/http/ ;
565 cp $(srcdir)/share/http/admin/*.html \
566 $(srcdir)/vlc-${VERSION}/http/admin/ ;
567 cp $(srcdir)/share/http/admin/.access \
568 $(srcdir)/vlc-${VERSION}/http/admin/ ;
570 mkdir -p "$(srcdir)/vlc-${VERSION}/mozilla"
572 cp $(srcdir)/mozilla/npvlc.dll $(srcdir)/vlc-${VERSION}/mozilla/ ;
573 cp $(srcdir)/mozilla/vlcintf.xpt $(srcdir)/vlc-${VERSION}/mozilla/ ;
576 package-win32-base-exe:
578 wine ~/.wine/fake_windows/Program\ Files/NSIS/makensis.exe \
579 -- /DVERSION=${VERSION} $(srcdir)/vlc-${VERSION}/nsi
581 package-win32-base-zip:
583 zip -r vlc-${VERSION}-win32.zip vlc-${VERSION}
585 package-win32-exe: package-win32-base package-win32-base-exe
587 rm -Rf $(srcdir)/vlc-${VERSION}
589 package-win32-zip: package-win32-base package-win32-base-zip
591 rm -Rf $(srcdir)/vlc-${VERSION}
593 package-win32: package-win32-base package-win32-base-exe package-win32-base-zip
595 rm -Rf $(srcdir)/vlc-${VERSION}
598 # Check that tmp isn't in the way
599 @if test -e $(srcdir)/tmp; then \
600 echo "Error: please remove $(srcdir)/tmp, it is in the way"; \
603 echo "OK."; mkdir $(srcdir)/tmp; \
606 # Copy relevant files
607 mkdir -p $(srcdir)/tmp/vlc
609 cp vlc AUTHORS COPYING ChangeLog README THANKS NEWS tmp/vlc/
610 # We cannot use ${PLUGIN_FILES} as it looks like it is too "long" for the BeOS shell...
611 if [ `find $(srcdir)/modules -name "lib*_plugin.so" | wc -l` -gt 0 ]; then \
612 mkdir -p $(srcdir)/tmp/vlc/plugins; \
613 find $(srcdir)/modules -name "lib*_plugin.so" | xargs -i{} cp {} $(srcdir)/tmp/vlc/plugins/; \
615 for i in $(ALL_LINGUAS); do \
616 mkdir -p $(srcdir)/tmp/vlc/locale/$${i}/LC_MESSAGES ; \
617 cp $(srcdir)/po/$${i}.gmo $(srcdir)/tmp/vlc/locale/$${i}/LC_MESSAGES/vlc.mo || true ; \
620 # Create package with debug symbols
621 mimeset -f $(srcdir)/tmp/vlc/* $(srcdir)/tmp/vlc/*/*
622 mv $(srcdir)/tmp/vlc $(srcdir)/tmp/vlc-${VERSION}
623 (cd $(srcdir)/tmp ; zip -9 -r vlc-${VERSION}-BeOS-debug.zip vlc-${VERSION} )
624 mv $(srcdir)/tmp/vlc-${VERSION}-BeOS-debug.zip $(srcdir)/
626 # Create package without debug symbols
627 mv $(srcdir)/tmp/vlc-${VERSION} $(srcdir)/tmp/vlc
628 strip $(srcdir)/tmp/vlc/vlc
629 if [ -d $(srcdir)/tmp/vlc/plugins ]; then \
630 strip $(srcdir)/tmp/vlc/plugins/lib*_plugin.so; \
632 xres -o $(srcdir)/tmp/vlc/vlc $(srcdir)/share/vlc_beos.rsrc
633 mimeset -f $(srcdir)/tmp/vlc/* $(srcdir)/tmp/vlc/*/*
634 mv $(srcdir)/tmp/vlc $(srcdir)/tmp/vlc-${VERSION}
635 (cd $(srcdir)/tmp ; zip -9 -r vlc-${VERSION}-BeOS.zip vlc-${VERSION} )
636 mv $(srcdir)/tmp/vlc-${VERSION}-BeOS.zip $(srcdir)/
642 # Check that tmp isn't in the way
643 @if test -e "$(top_builddir)/tmp"; then \
644 echo "Error: please remove $(top_builddir)/tmp, it is in the way"; \
647 echo "OK."; mkdir -p "$(top_builddir)/tmp"; \
650 # Copy relevant files
651 cp -R "$(top_builddir)/VLC.app" "$(top_builddir)/tmp/"
652 cd "$(srcdir)" && cp AUTHORS COPYING ChangeLog README README.MacOSX.rtf THANKS NEWS $(top_builddir)/tmp/
655 $(srcdir)/extras/MacOSX/macosx-dmg 18 "vlc-${VERSION}" $(top_builddir)/tmp/*
658 rm -Rf $(top_builddir)/tmp
660 ###############################################################################
662 ###############################################################################
668 @for dep in "" `$(VLC_CONFIG) --target builtin`; do \
669 if test "$${dep}" -nt "$(top_builddir)/vlc$(EXEEXT)"; then \
674 @if test ! -f $@; then printf "" > $@; fi
676 ###############################################################################
678 ###############################################################################