-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
26 lines (23 loc) · 943 Bytes
/
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
NAME=om-control-center
VERSION=1.0.0
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)/$(sharedir)/$(NAME)
mkdir -p $(DESTDIR)$(prefix)/$(sharedir)/applications
mkdir -p $(DESTDIR)$(prefix)/$(localedir)
install -m 644 etc/skel/om-control-center.desktop $(DESTDIR)$(prefix)/$(sharedir)/applications
install -m 755 usr/bin/* $(DESTDIR)$(prefix)/$(bindir)
cp -avx usr/share/$(NAME)/* $(DESTDIR)$(prefix)/$(sharedir)/$(NAME)
@for l in $(TRANSLATIONS); do \
mkdir -p $(DESTDIR)$(prefix)/$(localedir)/$$l/LC_MESSAGES; \
cp -avx locale/$$l/* $(DESTDIR)$(prefix)$(localedir)/$$l/LC_MESSAGES ; \
done
dist:
git archive --format=tar --prefix=$(NAME)-$(VERSION)/ HEAD | xz -2vec -T0 > $(NAME)-$(VERSION).tar.xz;
$(info $(NAME)-$(VERSION).tar.xz is ready)