summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorNatanael Copa <natanael.copa@gmail.com>2008-03-27 13:54:16 +0000
committerNatanael Copa <natanael.copa@gmail.com>2008-03-27 13:54:16 +0000
commit3142bc1bcec3ab55677cdb2cdadf5cf23d15f4b4 (patch)
tree52ef2dc6343f07199d7c8b03cafdeae572a67ef0 /Makefile
downloadacf-ipsec-tools-3142bc1bcec3ab55677cdb2cdadf5cf23d15f4b4.tar.bz2
acf-ipsec-tools-3142bc1bcec3ab55677cdb2cdadf5cf23d15f4b4.tar.xz
added ipsec-tools
git-svn-id: svn://svn.alpinelinux.org/acf/ipsec-tools/trunk@845 ab2d0c66-481e-0410-8bed-d214d4d58bed
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile47
1 files changed, 47 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..49bde55
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,47 @@
+APP_NAME=ipsec-tools
+PACKAGE=acf-$(APP_NAME)
+VERSION=0.1
+
+APP_DIST=\
+ ipsec-tools-controller.lua \
+ ipsec-tools-model.lua \
+ ipsec-tools-status-html.lsp \
+ ipsec-tools.menu \
+
+
+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 $(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