summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Troy <dave@popvox.com>2006-07-01 15:57:46 +0000
committerDavid Troy <dave@popvox.com>2006-07-01 15:57:46 +0000
commitec28ac76e53f373d44eae152c07e13b5e1a4e173 (patch)
tree0cb9a5840da623cfa7115ab13bff2ad1940969d5
parent9776d23b64d8c72eef2ee80bf7fb840cc9429f39 (diff)
downloadastmanproxy-ec28ac76e53f373d44eae152c07e13b5e1a4e173.zip
astmanproxy-ec28ac76e53f373d44eae152c07e13b5e1a4e173.tar.gz
astmanproxy-ec28ac76e53f373d44eae152c07e13b5e1a4e173.tar.xz
cleanup make dist for Mac OS
git-svn-id: http://svncommunity.digium.com/svn/astmanproxy/trunk@131 f02b47b9-160a-0410-81a6-dc3441afb0ec
-rw-r--r--Makefile9
1 files changed, 5 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 7d19bfb..e2b9000 100644
--- a/Makefile
+++ b/Makefile
@@ -9,11 +9,11 @@ CONFDIR:=/etc/asterisk
CONFDIR_REAL := $(DESTDIR)/etc/asterisk
PERMDIR:=/etc/asterisk
PERMDIR_REAL := $(DESTDIR)/etc/asterisk
+DISTDIR:=/var/www/html/astmanproxy
LIBDIR := $(DESTDIR)/usr/lib/astmanproxy
CONFFILE := astmanproxy.conf
PERMFILE := astmanproxy.users
-DISTDIR := /var/www/html/astmanproxy
CC := gcc
INCLUDES :=
@@ -158,9 +158,10 @@ uninstall:
@echo "Successfully uninstalled!"
dist: clean
- rm -f $(DISTDIR)/astmanproxy-${VERSION}*; \
- cd ..; tar czf $(DISTDIR)/astmanproxy-${VERSION}-`date +%Y%m%d-%H%M`.tgz ${VERSION}; \
- /usr/bin/scp $(DISTDIR)/astmanproxy-${VERSION}-*.tgz root@www.popvox.com:$(DISTDIR); \
+ rm -rf /tmp/astmanproxy-${VERSION}*; \
+ cp -R . /tmp/astmanproxy-${VERSION}; \
+ cd /tmp; tar czf /tmp/astmanproxy-${VERSION}-`date +%Y%m%d-%H%M`.tgz astmanproxy-${VERSION}; \
+ /usr/bin/scp /tmp/astmanproxy-${VERSION}-*.tgz root@www.popvox.com:$(DISTDIR); \
/usr/bin/ssh www.popvox.com "ln -sf $(DISTDIR)/astmanproxy-${VERSION}-*.tgz $(DISTDIR)/astmanproxy-latest.tgz"
clean: