blob: 394163fb31bcc2e093d342bd27d0b0109667f8b0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
NAME = qarepo
VERSION = 1.7
DESTDIR=
all:
make -C po
intltool-merge --utf8 po qarepo.desktop.in qarepo.desktop -d -u -c intltool-merge-cache
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
make -c po install
dist:
@git archive --prefix=$(NAME)-$(VERSION)/ HEAD | xz > $(NAME)-$(VERSION).tar.xz;
$(info $(NAME)-$(VERSION).tar.xz is ready)
|