summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMika Havela <mika.havela@gmail.com>2008-04-15 14:52:31 +0000
committerMika Havela <mika.havela@gmail.com>2008-04-15 14:52:31 +0000
commitf4ff698b7b510fc24ccd4d44ccfe0fcbcce417a5 (patch)
tree307e9ab2a9cb82f5cdad3b47ce7232cd93cf48ad /Makefile
downloadacf-chrony-f4ff698b7b510fc24ccd4d44ccfe0fcbcce417a5.tar.bz2
acf-chrony-f4ff698b7b510fc24ccd4d44ccfe0fcbcce417a5.tar.xz
Creating acf-chrony. status/expert/logfile functionallity should work.
git-svn-id: svn://svn.alpinelinux.org/acf/chrony/trunk@992 ab2d0c66-481e-0410-8bed-d214d4d58bed
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile49
1 files changed, 49 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..563a926
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,49 @@
+APP_NAME=chrony
+PACKAGE=acf-$(APP_NAME)
+VERSION=0.1.0
+
+APP_DIST=\
+ chrony-controller.lua \
+ chrony-model.lua \
+ chrony-status-html.lsp \
+ chrony-logfile-html.lsp \
+ chrony-expert-html.lsp \
+ chrony.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