aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorNicolas Vigier <boklm@mageia.org>2013-05-13 19:55:16 +0000
committerNicolas Vigier <boklm@mageia.org>2013-05-13 19:55:16 +0000
commit3d442aae04b0a6e19fb24ce5597094e6d2481040 (patch)
tree075cfe8ccf14b46826e0df30816f01b1d04b1e2c /Makefile
parent0b69010afef31a7da1aacb4b00f623b1b5fd55c2 (diff)
downloadmgatres-3d442aae04b0a6e19fb24ce5597094e6d2481040.tar
mgatres-3d442aae04b0a6e19fb24ce5597094e6d2481040.tar.gz
mgatres-3d442aae04b0a6e19fb24ce5597094e6d2481040.tar.bz2
mgatres-3d442aae04b0a6e19fb24ce5597094e6d2481040.tar.xz
mgatres-3d442aae04b0a6e19fb24ce5597094e6d2481040.zip
Add Makefile
git-svn-id: svn+ssh://svn.mageia.org/svn/soft/mga-treasurer/trunk@8229 5b7c3c08-40e5-403b-9995-ace06908e4af
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile25
1 files changed, 25 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..cee0300
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,25 @@
+VERSION=0.1
+
+PROJECTNAME=mga-treasurer
+BINFILES=mktreasurer
+CFGFILES=mga-treasurer.conf
+TMPLFILES=tmpl/*.html
+
+sysconfdir=/etc
+bindir=/usr/bin
+sharedir=/usr/share
+projectdir=$(sharedir)/$(PROJECTNAME)
+tmpldir=$(projectdir)/tmpl
+
+all:
+
+install:
+ install -d $(DESTDIR)$(projectdir) $(DESTDIR)$(tmpldir) \
+ $(DESTDIR)$(bindir) $(DESTDIR)$(sysconfdir)
+ install -m 755 $(BINFILES) $(DESTDIR)$(bindir)
+ install -m 644 $(CFGFILES) $(DESTDIR)$(sysconfdir)
+ install -m 644 $(TMPLFILES) $(DESTDIR)$(tmpldir)
+ install -m 644 config_default $(DESTDIR)$(projectdir)/config
+
+tar:
+ git archive --format=tar --prefix $(PROJECTNAME)-$(VERSION)/ HEAD | xz > $(PROJECTNAME)-$(VERSION).tar.xz