]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
be more obvious when you can't do an update
authorMichael Jerris <mike@jerris.com>
Mon, 26 Oct 2009 19:05:22 +0000 (19:05 +0000)
committerMichael Jerris <mike@jerris.com>
Mon, 26 Oct 2009 19:05:22 +0000 (19:05 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15232 d0543943-73ff-0310-b7d9-9358b9ac24b2

Makefile.am

index 24e5df613d2bbd63f2b95f95e48bf17d97d974b6..a6a228aa66f8459ec9b76915529caf93b97661f8 100644 (file)
@@ -299,7 +299,17 @@ src/include/switch_version.h: $(top_srcdir)/src/include/switch_version.h.in .ver
          fi ; \
        fi ;
 
-update:
+is-svn:
+       @if [ ! -d .svn ] ; then \
+               echo ; echo ; \
+               echo "**************************************************************************************************" ; \
+               echo "You can not update a release tarball or without a svn working copy, please checkout fresh from svn" ; \
+               echo "**************************************************************************************************" ; \
+               echo ; echo ; \
+               exit 1; \
+       fi 
+
+update: is-svn
        @if test -d .svn ; then \
          test ! -f .version || rm -f .version ; \
          echo Updating... ; \
@@ -357,17 +367,17 @@ core_install: install_core
 
 everything: install
 
-up: clean
+up: is-svn clean
        svn update
        $(MAKE) -j core
        $(MAKE) -j modules
        $(MAKE) install
 
-sync:
+sync: is-svn
        svn update
        $(MAKE) install
 
-speedy-sync:
+speedy-sync: is-svn
        svn update
        $(MAKE) -j install
 
@@ -431,14 +441,14 @@ sofia-reconf:
        cd libs/sofia-sip && $(MAKE) clean
        cd libs/sofia-sip && ./configure --prefix=$(PREFIX) --with-pic --with-glib=no --disable-shared
 
-current: update-clean
+current: is-svn update-clean
        svn update
        $(MAKE) all
        $(MAKE) install
 
 installall: current
 
-speedy-current: update-clean
+speedy-current: is-svn update-clean
        svn update
        $(MAKE) speedy-sure
        $(MAKE) install