rm -Rf verify the existence of tmp for us
authorRafaël Carré <funman@videolan.org>
Mon, 4 Feb 2008 14:54:09 +0000 (14:54 +0000)
committerRafaël Carré <funman@videolan.org>
Mon, 4 Feb 2008 14:54:09 +0000 (14:54 +0000)
Makefile.am

index 6e78bc0..bcef650 100644 (file)
@@ -352,8 +352,8 @@ noinst_DATA = VLC.app
 # VLC-release.app is the old VLC.app target
 VLC-release.app: vlc
        ( cd src && make install )
 # VLC-release.app is the old VLC.app target
 VLC-release.app: vlc
        ( cd src && make install )
-       if test -e $(top_builddir)/tmp ; then rm -Rf $(top_builddir)/tmp; fi
-       mkdir -p "$(top_builddir)/tmp/extras/package/macosx"; \
+       then rm -Rf "$(top_builddir)/tmp"
+       mkdir -p "$(top_builddir)/tmp/extras/package/macosx"
        rm -Rf $(top_builddir)/VLC-release.app
        cp -R $(srcdir)/extras/package/macosx/vlc.xcodeproj $(top_builddir)/tmp/extras/package/macosx/
        cp -R $(srcdir)/extras/package/macosx/Resources $(top_builddir)/tmp/extras/package/macosx
        rm -Rf $(top_builddir)/VLC-release.app
        cp -R $(srcdir)/extras/package/macosx/vlc.xcodeproj $(top_builddir)/tmp/extras/package/macosx/
        cp -R $(srcdir)/extras/package/macosx/Resources $(top_builddir)/tmp/extras/package/macosx
@@ -519,8 +519,8 @@ VLC-release.app: vlc
 
 VLC.app: vlc 
        ( cd src && make install )
 
 VLC.app: vlc 
        ( cd src && make install )
-       if test -e $(top_builddir)/tmp ; then rm -Rf $(top_builddir)/tmp; fi
-       mkdir -p "$(top_builddir)/tmp/extras/package/macosx"; \
+       rm -Rf $(top_builddir)/tmp
+       mkdir -p "$(top_builddir)/tmp/extras/package/macosx"
        rm -Rf $(top_builddir)/VLC.app
        cp -R $(srcdir)/extras/package/macosx/vlc.xcodeproj $(top_builddir)/tmp/extras/package/macosx/
        cp -R $(srcdir)/extras/package/macosx/Resources $(top_builddir)/tmp/extras/package/macosx
        rm -Rf $(top_builddir)/VLC.app
        cp -R $(srcdir)/extras/package/macosx/vlc.xcodeproj $(top_builddir)/tmp/extras/package/macosx/
        cp -R $(srcdir)/extras/package/macosx/Resources $(top_builddir)/tmp/extras/package/macosx