-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmakefile
More file actions
executable file
·53 lines (40 loc) · 1.36 KB
/
makefile
File metadata and controls
executable file
·53 lines (40 loc) · 1.36 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
# Makefile to install ccryptmenu program, 05-05-2022
# URL :: https://github.com/gavinlyonsrepo/ccryptmenu
# Gavin Lyons
# Options:
# 1. sudo make install
# 2. sudo make uninstall
PREFIX ?= /usr
PKGNAME = ccryptmenu
all:
@echo Run \'make install\' to install $(PKGNAME).
@echo 'or'
@echo Run \'make uninstall\' to uninstall $(PKGNAME).
install:
@echo 'START!'
@echo 'Installing $(PKGNAME) ....'
@echo 'Making directories...'
@mkdir -vp $(PREFIX)/bin
@mkdir -vp $(PREFIX)/share/doc/$(PKGNAME)
@echo 'Installing Script ...'
@cp -vp main/$(PKGNAME) $(PREFIX)/bin
@chmod 755 $(PREFIX)/bin/$(PKGNAME)
@echo 'Installing Documentation ...'
@cp -vp README.md $(PREFIX)/share/doc/$(PKGNAME)
@cp -vp documentation/manpage/ccryptmenu.7.gz $(PREFIX)/share/man/man7/
@echo 'Installing Desktop entry ...'
@cp -vp desktop/$(PKGNAME).desktop $(PREFIX)/share/applications
@cp -vp desktop/$(PKGNAME)icon.png $(PREFIX)/share/pixmaps
@echo 'DONE!'
uninstall:
@echo 'START!'
@echo 'Uninstalling $(PKGNAME) ...'
@echo 'Removing Script ...'
rm -vf $(PREFIX)/bin/$(PKGNAME)
@echo 'Removing Documentation ...'
rm -vf $(PREFIX)/share/doc/$(PKGNAME)/README.md
rm -vf $(PREFIX)/share/man/man7/ccryptmenu.7.gz
@echo 'Removing Desktop entry ...'
rm -vf $(PREFIX)/share/applications/$(PKGNAME).desktop
rm -vf $(PREFIX)/share/pixmaps/$(PKGNAME)icon.png
@echo 'DONE!'