forked from examon/fedora-gooey-karma
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile
40 lines (33 loc) · 1.23 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
# Branislav Blaskovic <branislav@blaskovic.sk>
# Tomas Meszaros <exo@tty.sk>
NAME = fedora-gooey-karma
ANGEL = karma-angel
PLAIN = karma-plain
CRYING = karma-crying
BINDIR = /usr/bin
DATADIR = /usr/share
all:
run:
./src/fedora-gooey-karma
install:
mkdir -p $(DESTDIR)$(DATADIR)/$(NAME)
install -D -p -m 755 src/$(NAME) $(DESTDIR)$(BINDIR)/$(NAME)
install -D -p -m 644 src/*.py $(DESTDIR)$(DATADIR)/$(NAME)/
mkdir -p $(DESTDIR)$(DATADIR)/applications
install -D -p -m 644 $(NAME).desktop $(DESTDIR)$(DATADIR)/applications/
mkdir -p $(DESTDIR)$(DATADIR)/icons/hicolor/
cp -r icons/* $(DESTDIR)$(DATADIR)/icons/hicolor/
chmod 644 $(DESTDIR)$(DATADIR)/icons/hicolor/*/apps/$(NAME).png
chmod 644 $(DESTDIR)$(DATADIR)/icons/hicolor/$(ANGEL).png
chmod 644 $(DESTDIR)$(DATADIR)/icons/hicolor/$(PLAIN).png
chmod 644 $(DESTDIR)$(DATADIR)/icons/hicolor/$(CRYING).png
uninstall:
rm -rf $(DESTDIR)$(DATADIR)/$(NAME)
rm -f $(DESTDIR)$(BINDIR)/$(NAME)
rm -f $(DESTDIR)$(DATADIR)/applications/$(NAME).desktop
rm -f $(DESTDIR)$(DATADIR)/icons/hicolor/*/apps/$(NAME).png
rm -f $(DESTDIR)$(DATADIR)/icons/hicolor/$(ANGEL).png
rm -f $(DESTDIR)$(DATADIR)/icons/hicolor/$(PLAIN).png
rm -f $(DESTDIR)$(DATADIR)/icons/hicolor/$(CRYING).png
clean:
rm src/*.pyc