summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2010-09-09 14:34:52 +0000
committerTed Trask <ttrask01@yahoo.com>2010-09-09 14:34:52 +0000
commitba26ef8ecef31ae3bd145b276994f76e5f633ebd (patch)
tree237b0b89d7548109d73d7c213859514dd890f852 /Makefile
downloadacf-freeswitch-vmail-ba26ef8ecef31ae3bd145b276994f76e5f633ebd.tar.bz2
acf-freeswitch-vmail-ba26ef8ecef31ae3bd145b276994f76e5f633ebd.tar.xz
Initial cut - but pretty close to complete.v0.0.1
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile48
1 files changed, 48 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..c3b23a5
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,48 @@
+APP_NAME=freeswitch-vmail
+PACKAGE=acf-$(APP_NAME)
+VERSION=0.0.1
+
+APP_DIST=\
+ vmail* \
+ template* \
+
+LIB_DIST=authenticator-freeswitch-vmail.lua
+
+EXTRA_DIST=README Makefile config.mk
+
+DISTFILES=$(APP_DIST) $(LIB_DIST) $(EXTRA_DIST)
+
+TAR=tar
+
+P=$(PACKAGE)-$(VERSION)
+tarball=$(P).tar.bz2
+install_dir=$(DESTDIR)/$(appdir)/$(APP_NAME)
+
+all:
+clean:
+ rm -rf $(tarball) $(P)
+
+dist: $(tarball)
+
+install:
+ mkdir -p "$(install_dir)"
+ cp -a $(APP_DIST) "$(install_dir)"
+ mkdir -p "$(acflibdir)"
+ cp -a $(LIB_DIST) "$(acflibdir)"
+
+$(tarball): $(DISTFILES)
+ rm -rf $(P)
+ mkdir -p $(P)
+ cp -a $(DISTFILES) $(P)
+ $(TAR) -jcf $@ $(P)
+ rm -rf $(P)
+
+# target that creates a tar package, unpacks is and install from package
+dist-install: $(tarball)
+ $(TAR) -jxf $(tarball)
+ $(MAKE) -C $(P) install DESTDIR=$(DESTDIR)
+ rm -rf $(P)
+
+include config.mk
+
+.PHONY: all clean dist install dist-install