forked from stevenpusser/mx-timeset-gui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
41 lines (37 loc) · 1.17 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
30
31
32
33
34
35
36
37
38
39
40
41
NAME = mx-timeset-gui
VERSION = 2.2
SHELL = /bin/bash
INSTALL = /usr/bin/install
MSGFMT = /usr/bin/msgfmt
SED = /bin/sed
DESTDIR =
bindir = /usr/bin
localedir = /usr/share/locale
icons = /usr/share/icons
deskdir = /usr/share/applications/mx
mandir = /usr/share/man/man1
docdir = /usr/share/doc/$(NAME)
appdir = /usr/share/$(NAME)-$(VERSION)
all:
cd po; make gettext
clean:
rm po/*.mo
install: all
$(INSTALL) -d $(DESTDIR)$(bindir)
$(INSTALL) -d $(DESTDIR)$(icons)
$(INSTALL) -d $(DESTDIR)$(deskdir)
$(INSTALL) -d $(DESTDIR)$(docdir)
$(INSTALL) -d $(DESTDIR)$(appdir)
$(INSTALL) -m755 bin/$(NAME).py $(DESTDIR)$(bindir)/$(NAME)
$(INSTALL) -m644 install/time-admin.png $(DESTDIR)$(icons)/$(NAME)-icon.png
$(INSTALL) -m644 install/time-settings.desktop $(DESTDIR)$(deskdir)/$(NAME).desktop
$(INSTALL) -m644 README.md $(DESTDIR)$(docdir)/README.md
$(INSTALL) -m644 COPYING $(DESTDIR)$(docdir)/COPYING
cp -r po/locale $(DESTDIR)/usr/share
uninstall:
rm $(DESTDIR)$(bindir)/$(NAME)
rm $(DESTDIR)$(icons)/$(NAME)-icon.png
rm $(DESTDIR)$(deskdir)/$(NAME).desktop
rm $(DESTDIR)$(docdir)/README.md
rm $(DESTDIR)$(docdir)/COPYING
rm $(DESTDIR)/usr/share/locale/*/LC_MESSAGES/$(NAME).mo