aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorNicolas Vigier <boklm@mars-attacks.org>2013-06-24 14:52:35 +0200
committerNicolas Vigier <boklm@mars-attacks.org>2013-06-24 14:52:35 +0200
commita5e591ce63ad004e1a3df267f4f40337875b85c3 (patch)
treec81753578db77d4a7bde6bb43e4789ecef011b38 /Makefile
parent9ad181ff91b2e461f4f508bc06a3832ae5128b09 (diff)
downloadmgagit-a5e591ce63ad004e1a3df267f4f40337875b85c3.tar
mgagit-a5e591ce63ad004e1a3df267f4f40337875b85c3.tar.gz
mgagit-a5e591ce63ad004e1a3df267f4f40337875b85c3.tar.bz2
mgagit-a5e591ce63ad004e1a3df267f4f40337875b85c3.tar.xz
mgagit-a5e591ce63ad004e1a3df267f4f40337875b85c3.zip
Version 0.1
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile29
1 files changed, 29 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..e1f4dbe
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,29 @@
+VERSION=0.1
+
+PROJECTNAME=mgagit
+BINFILES=mgagit
+CFGFILES=mgagit.conf
+TMPLFILES=tmpl/*.gl
+
+sysconfdir=/etc
+bindir=/usr/bin
+sharedir=/usr/share
+projectdir=$(sharedir)/$(PROJECTNAME)
+tmpldir=$(projectdir)/tmpl
+perldir=/usr/lib/perl5/site_perl
+
+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
+ install -d $(DESTDIR)$(perldir)/MGA
+ install -m 644 lib/MGA/Git.pm $(DESTDIR)$(perldir)/MGA
+
+tar:
+ git archive --format=tar --prefix $(PROJECTNAME)-$(VERSION)/ HEAD | \
+ xz > $(PROJECTNAME)-$(VERSION).tar.xz