-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
69 lines (57 loc) · 1.76 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
64
65
66
67
68
69
# Copyright (C) 2015 Piotr Chmielnicki
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
TOCLEAN= encrypt0/encrypt0 \
encrypt0/encrypt0.exe \
decrypt0/decrypt0 \
decrypt0/decrypt0.exe \
genpads0/genpads0 \
genpads0/genpads0.exe
all:
cd encrypt0 && go build encrypt0.go
cd decrypt0 && go build decrypt0.go
cd genpads0 && go build genpads0.go
clean:
go clean
rm -fv $(TOCLEAN)
fclean: clean
re: fclean all
# Linux (and *BSD ?) only
install:
mkdir -p ~/bin/
install encrypt0/encrypt0 \
encrypt0/encrypt0-gui \
decrypt0/decrypt0 \
decrypt0/decrypt0-gui \
genpads0/genpads0 \
~/bin/
mkdir -p ~/.local/share/applications/
install encrypt0/encrypt0.desktop \
decrypt0/decrypt0.desktop \
~/.local/share/applications/
uninstall:
rm -fv ~/bin/encrypt0 \
~/bin/encrypt0-gui \
~/bin/decrypt0 \
~/bin/decrypt0-gui \
~/bin/genpads0 \
~/.local/share/applications/encrypt0.desktop \
~/.local/share/applications/decrypt0.desktop
full: re install
purge: uninstall clean
fmt:
go fmt encrypt0/encrypt0.go
go fmt decrypt0/decrypt0.go
go fmt genpads0/genpads0.go