summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2008-10-03 20:13:44 +0000
committerTed Trask <ttrask01@yahoo.com>2008-10-03 20:13:44 +0000
commita0fc80ea045a64c0b03d9b0103da9e5644e6ca3a (patch)
treed592cb8b1075e9c45f7467acb4e7c72778ee5b2d /Makefile
downloadacf-samba-a0fc80ea045a64c0b03d9b0103da9e5644e6ca3a.tar.bz2
acf-samba-a0fc80ea045a64c0b03d9b0103da9e5644e6ca3a.tar.xz
Added samba controller.
git-svn-id: svn://svn.alpinelinux.org/acf/samba/trunk@1541 ab2d0c66-481e-0410-8bed-d214d4d58bed
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile44
1 files changed, 44 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..c79d9ed
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,44 @@
+APP_NAME=samba
+PACKAGE=acf-$(APP_NAME)
+VERSION=0.0.1
+
+APP_DIST=\
+ samba* \
+
+
+EXTRA_DIST=README Makefile config.mk
+
+DISTFILES=$(APP_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)"
+
+$(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