aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMartin Whitaker <mageia@martin-whitaker.me.uk>2020-02-19 20:42:59 +0000
committerMartin Whitaker <mageia@martin-whitaker.me.uk>2020-02-19 20:45:59 +0000
commit7b78e9f319bdeeee99ec4bc0f01b53ab5673fbd5 (patch)
tree14064243233261625b7476b875fe62025e7c1da7 /Makefile
parentb343a521ed4c460c9cfded35f2c3bc8a3b5f7aa9 (diff)
parentf92b0881239ee80063eb3813a6286a4bb8489fa7 (diff)
downloadqarepo-7b78e9f319bdeeee99ec4bc0f01b53ab5673fbd5.tar
qarepo-7b78e9f319bdeeee99ec4bc0f01b53ab5673fbd5.tar.gz
qarepo-7b78e9f319bdeeee99ec4bc0f01b53ab5673fbd5.tar.bz2
qarepo-7b78e9f319bdeeee99ec4bc0f01b53ab5673fbd5.tar.xz
qarepo-7b78e9f319bdeeee99ec4bc0f01b53ab5673fbd5.zip
Import code from private repository.
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..c33f1e7
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,26 @@
+NAME = qarepo
+VERSION = 1.6
+
+DESTDIR=
+
+all:
+ sed -i "s/version = '.*';/version = 'v${VERSION}';/" qarepo
+
+check:
+ perl -cw qarepo
+
+install:
+ install -d $(DESTDIR)/usr/bin
+ install -d $(DESTDIR)/usr/libexec
+ install -d $(DESTDIR)/usr/share/applications
+ install -d $(DESTDIR)/usr/share/polkit-1/actions
+ install -d $(DESTDIR)/usr/share/polkit-1/rules.d
+ install -m 0755 qarepo $(DESTDIR)/usr/bin
+ install -m 0755 qarepo-helper $(DESTDIR)/usr/libexec
+ install -m 0644 qarepo.desktop $(DESTDIR)/usr/share/applications
+ install -m 0644 org.mageia.qarepo-helper.policy $(DESTDIR)/usr/share/polkit-1/actions
+ install -m 0644 org.mageia.qarepo-helper.rules $(DESTDIR)/usr/share/polkit-1/rules.d
+
+dist:
+ @git archive --prefix=$(NAME)-$(VERSION)/ HEAD | xz > $(NAME)-$(VERSION).tar.xz;
+ $(info $(NAME)-$(VERSION).tar.xz is ready)