qwell: trunk r953 - /trunk/Makefile
asterisk-gui-commits at lists.digium.com
asterisk-gui-commits at lists.digium.com
Thu May 17 10:29:37 MST 2007
Author: qwell
Date: Thu May 17 12:29:36 2007
New Revision: 953
URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=953
Log:
Add support for update and uninstall targets.
Issue 9732.
Modified:
trunk/Makefile
Modified: trunk/Makefile
URL: http://svn.digium.com/view/asterisk-gui/trunk/Makefile?view=diff&rev=953&r1=952&r2=953
==============================================================================
--- trunk/Makefile (original)
+++ trunk/Makefile Thu May 17 12:29:36 2007
@@ -295,6 +295,24 @@
distclean: clean
-rm -f makeopts config.log config.status
-rm -rf autom4te.cache
+
+uninstall:
+ rm -rf $(CONFIGDIR)
+ rm -rf $(ASTVARLIBDIR)/scripts
+
+update:
+ @if [ -d .svn ]; then \
+ echo "Updating from Subversion..." ; \
+ svn update | tee update.out; \
+ rm -f .version; \
+ if [ `grep -c ^C update.out` -gt 0 ]; then \
+ echo ; echo "The following files have conflicts:" ; \
+ grep ^C update.out | cut -b4- ; \
+ fi ; \
+ rm -f update.out; \
+ else \
+ echo "Not under version control"; \
+ fi
samples:
mkdir -p $(ASTETCDIR)
More information about the asterisk-gui-commits
mailing list