aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorNicolas Vigier <boklm@mageia.org>2013-06-06 18:46:26 +0000
committerNicolas Vigier <boklm@mageia.org>2013-06-06 18:46:26 +0000
commit3ffc9be82ae546b9dbc15ce6050645cf9bb40390 (patch)
tree929c5bbd6dde78e7c9b498e3f761c49ecfb4f1f8 /Makefile
parent53271c2e6f71e62ee78ac472819fba54ebe0d44d (diff)
downloadmgaadvisories-3ffc9be82ae546b9dbc15ce6050645cf9bb40390.tar
mgaadvisories-3ffc9be82ae546b9dbc15ce6050645cf9bb40390.tar.gz
mgaadvisories-3ffc9be82ae546b9dbc15ce6050645cf9bb40390.tar.bz2
mgaadvisories-3ffc9be82ae546b9dbc15ce6050645cf9bb40390.tar.xz
mgaadvisories-3ffc9be82ae546b9dbc15ce6050645cf9bb40390.zip
Add Makefile
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile26
1 files changed, 26 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..a93d3d7
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,26 @@
+VERSION=0.1
+
+PROJECTNAME=mga-advisories
+BINFILES=mkadvisories
+CFGFILES=mga-advisories.conf
+TMPLFILES=tmpl/*.html tmpl/*.txt
+
+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