-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
35 lines (28 loc) · 804 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
27
28
29
30
31
32
33
34
35
TARGET = phatty
PREFIX = $(DESTDIR)/usr/local
BINDIR = $(PREFIX)/bin
ICON_THEME_DIR = /usr/share/icons/hicolor
ICON_DIR = $(ICON_THEME_DIR)/scalable/apps
DESKTOP_FILES_DIR = /usr/share/applications
all: build
build: test
python3 setup.py bdist_egg
install:
python3 setup.py install
install -D res/$(TARGET) $(BINDIR)/$(TARGET)
install -D res/$(TARGET).svg $(ICON_DIR)
gtk-update-icon-cache $(ICON_THEME_DIR)
install -D res/$(TARGET).desktop $(DESKTOP_FILES_DIR)
uninstall:
rm $(BINDIR)/$(TARGET)
rm $(ICON_DIR)/$(TARGET).svg
gtk-update-icon-cache $(ICON_THEME_DIR)
rm $(DESKTOP_FILES_DIR)/$(TARGET).desktop
test:
python3 setup.py test
clean:
python3 setup.py clean --all
py3clean .
rm -rf dist $(shell python3 setup.py --name).egg-info
rm -rf .eggs
find . -name '*~' | xargs rm -f