-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
63 lines (55 loc) · 2.56 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
PREFIX=/usr
SKINS_PATH=$(PREFIX)/share/launchy/skins
PLUGINS_PATH=$(PREFIX)/lib/launchy/plugins
PLATFORMS_PATH=$(PREFIX)/lib/launchy/
DESKTOP_PATH=$(PREFIX)/share/applications
ICON_PATH=$(PREFIX)/share/pixmaps
QMAKE=qmake-qt4
DEFS=SKINS_PATH=\\\"$(SKINS_PATH)\\\" PLUGINS_PATH=\\\"$(PLUGINS_PATH)\\\" \
PLATFORMS_PATH=\\\"$(PLATFORMS_PATH)\\\"
DIRS=. platforms/unix plugins/runner plugins/weby plugins/calcy plugins/gcalc
release::
$(DEFS) $(QMAKE) Launchy.pro && $(DEFS) make -f Makefile release
cd platforms/unix && $(DEFS) $(QMAKE) unix.pro && $(DEFS) make release
cd plugins/runner && $(QMAKE) runner.pro && make release
cd plugins/weby && $(QMAKE) weby.pro && make release
cd plugins/calcy && $(QMAKE) calcy.pro && make release
cd plugins/gcalc && $(QMAKE) gcalc.pro && make release
debug::
$(DEFS) $(QMAKE) Launchy.pro && $(DEFS) make -f Makefile debug
cd platforms/unix && $(DEFS) $(QMAKE) unix.pro && $(DEFS) make debug
cd plugins/runner && $(QMAKE) runner.pro && make debug
cd plugins/weby && $(QMAKE) weby.pro && make debug
cd plugins/calcy && $(QMAKE) calcy.pro && make debug
cd plugins/gcalc && $(QMAKE) gcalc.pro && make debug
clean::
$(QMAKE) Launchy.pro && make -f Makefile clean
cd platforms/unix && $(QMAKE) unix.pro && $(DEFS) make clean
cd plugins/runner && $(QMAKE) runner.pro && make clean
cd plugins/weby && $(QMAKE) weby.pro && make clean
cd plugins/calcy && $(QMAKE) calcy.pro && make clean
cd plugins/gcalc && $(QMAKE) gcalc.pro && make clean
install:: release
-install -d $(DESTDIR)$(PREFIX)/bin/
install -m 755 release/Launchy $(DESTDIR)$(PREFIX)/bin/launchy
-install -d $(DESTDIR)$(PLATFORMS_PATH)
install -m 644 release/libplatform_unix.so $(DESTDIR)$(PLATFORMS_PATH)/
-install -d $(DESTDIR)$(PLUGINS_PATH)
install -m 644 release/plugins/*.so $(DESTDIR)$(PLUGINS_PATH)/
-install -d $(DESTDIR)$(PLUGINS_PATH)/icons
install -m 644 plugins/runner/runner.png $(DESTDIR)$(PLUGINS_PATH)/icons/
-install -m 644 plugins/weby/weby.png $(DESTDIR)$(PLUGINS_PATH)/icons/
install -m 644 plugins/calcy/calcy.png $(DESTDIR)$(PLUGINS_PATH)/icons/
-install -d $(DESTDIR)$(SKINS_PATH)
cp -r skins $(DESTDIR)$(PREFIX)/share/launchy/
install -d $(DESTDIR)$(DESKTOP_PATH)/
install -m 644 linux/launchy.desktop $(DESTDIR)$(DESKTOP_PATH)/
install -d $(DESTDIR)$(ICON_PATH)/
-install -m 644 "misc/Launchy Icon/launchy_icon.png" $(DESTDIR)$(ICON_PATH)/launchy.png
uninstall::
-rm $(PREFIX)/bin/launchy
-rm -rf $(PLUGINS_PATH)
-rm -rf $(PLATFORMS_PATH)
-rm -rf $(SKINS_PATH)
-rm $(DESTDIR)$(DESKTOP_PATH)/launchy.desktop
-rm $(DESTDIR)$(ICON_PATH)/launchy.png