Makefile.am: Automatically remove ./tmp in the VLC-release.app target.
[vlc.git] / Makefile.am
index b26f70f..cd531c4 100644 (file)
@@ -351,13 +351,11 @@ if HAVE_DARWIN
 noinst_DATA = VLC.app
 # VLC-release.app is the old VLC.app target
 VLC-release.app: vlc
-       ( cd  src && make  )
+       ( cd  src && make install )
        @if test -e "$(top_builddir)/tmp"; then \
-         echo "Error: please remove $(top_builddir)/tmp, it is in the way"; \
-         false; \
-       else \
-         echo "OK."; mkdir -p "$(top_builddir)/tmp/extras/package/macosx"; \
-       fi
+         rm -Rf $(top_builddir)/tmp \
+       fi \
+    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