-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathmakefile
More file actions
54 lines (40 loc) · 1.34 KB
/
makefile
File metadata and controls
54 lines (40 loc) · 1.34 KB
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
PREFIX ?= /usr
.PHONY: all install uninstall help
all: help
install:
@echo 'Installing aegis ....'
@echo 'Making directories...'
@mkdir -vp $(PREFIX)/bin
@mkdir -vp $(PREFIX)/lib/aegis/modules
@mkdir -vp $(PREFIX)/share/doc/aegis
@mkdir -vp $(PREFIX)/share/applications
@mkdir -vp $(PREFIX)/share/pixmaps
@echo 'Installing script...'
@cp -vp main/aegis $(PREFIX)/bin
@chmod 755 $(PREFIX)/bin/aegis
@echo 'Installing modules...'
@cp -vp modules/* $(PREFIX)/lib/aegis/modules
@echo 'Installing Readme...'
@cp -vp README.md $(PREFIX)/share/doc/aegis
@echo 'Installing Desktop entry...'
@cp -vp desktop/aegis.desktop $(PREFIX)/share/applications
@echo 'Installing Desktop icon...'
@cp -vp desktop/aegisicon.png $(PREFIX)/share/pixmaps
@echo 'DONE!'
uninstall:
@echo 'Uninstalling aegis ...'
@rm -vf $(PREFIX)/bin/aegis
@rm -vrf $(PREFIX)/lib/aegis
@rm -vrf $(PREFIX)/share/doc/aegis
@rm -vf $(PREFIX)/share/applications/aegis.desktop
@rm -vf $(PREFIX)/share/pixmaps/aegisicon.png
@echo 'DONE!'
help:
@echo ''
@echo ' aegis - Makefile targets:'
@echo ''
@echo ' make Show this info (same as make help)'
@echo ' make install Install aegis to PREFIX (default: /usr)'
@echo ' make uninstall Remove all installed aegis files'
@echo ''
@echo ' May need sudo for install/uninstall depending on PREFIX.'