-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
39 lines (33 loc) · 1.11 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
ifeq ($(PREFIX),)
PREFIX := /usr/local
endif
ifeq ($(XDG_DEST),)
XDG_DEST := /etc/xdg/autostart
endif
ifeq ($(PK_DEST),)
PK_DEST := /usr/share/polkit-1/actions
endif
ifeq ($(PK_EXEC_DEST),)
PK_EXEC_DEST := \/usr\/local\/bin
endif
help:
@echo "make install for installing both wifiman and wifigui"
@echo "make install_no_wifigui for installing wifiman without wifigui"
@echo "make uninstall for removing locally installed wifiman (and wifigui)"
@echo "make install_indicator for installing wifiman, wifigui, and wifiman-indicator"
install:
install -d $(PREFIX)/bin
install -m 755 wifiman $(PREFIX)/bin
install -m 755 wifigui $(PREFIX)/bin
uninstall:
rm $(PREFIX)/bin/wifiman
ifeq (,$(wildcard $(PREFIX)/wifigui))
rm $(PREFIX)/bin/wifigui
endif
install_no_wifigui:
install -d $(PREFIX)/bin
install -m 755 wifiman $(PREFIX)/bin
install_indicator: install
git submodule update --init --recursive && cd wifiman-indicator && ./deps_check.sh && make UPDATE_ICON=../draw.vala all && make XDG_DEST=$(XDG_DEST) PK_DEST=$(PK_DEST) PK_EXEC_DEST="$(PK_EXEC_DEST)" PREFIX=$(PREFIX) install
clean:
rm -rf wifiman-indicator/*