forked from panahbiru/oma-welcome
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
29 lines (26 loc) · 1.11 KB
/
Makefile
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=oma-welcome
VERSION=1.2.0.4
TRANSLATIONS=de en fr id it pt_BR pt_PT tr
bindir=/usr/bin
sysconfdir=/etc
sharedir=/usr/share
localedir=$(sharedir)/locale
all:
install:
mkdir -p $(DESTDIR)$(prefix)/$(bindir)
mkdir -p $(DESTDIR)$(prefix)/$(sysconfdir)/xdg/autostart
mkdir -p $(DESTDIR)$(prefix)/$(sharedir)/$(NAME)
mkdir -p $(DESTDIR)$(prefix)/$(sharedir)/applications
mkdir -p $(DESTDIR)$(prefix)/$(localedir)
install -m 644 om-welcome.desktop $(DESTDIR)$(prefix)/$(sysconfdir)/xdg/autostart
install -m 644 etc/skel/om-welcome.desktop $(DESTDIR)$(prefix)/$(sharedir)/applications
install -m 755 usr/bin/* $(DESTDIR)$(prefix)/$(bindir)
cp -avx usr/share/$(NAME)/* $(DESTDIR)$(prefix)/$(sharedir)/$(NAME)
chmod -R 755 $(DESTDIR)$(prefix)/$(sharedir)/$(NAME)
@for l in $(TRANSLATIONS); do \
mkdir -p $(DESTDIR)$(prefix)/$(localedir)/$$l/LC_MESSAGES; \
msgcat locale/$$l/om-welcome.po | msgfmt -o $(DESTDIR)$(prefix)$(localedir)/$$l/LC_MESSAGES/om-welcome.mo - ; \
done
dist:
git archive --format=tar --prefix=$(NAME)-$(VERSION)/ HEAD | xz -2vec -T0 > $(NAME)-$(VERSION).tar.xz;
$(info $(NAME)-$(VERSION).tar.xz is ready)