File tree 3 files changed +23
-16
lines changed
3 files changed +23
-16
lines changed Original file line number Diff line number Diff line change 1
- # Compatible with GNU make and BSD make.
1
+ NAME =gister
2
2
3
- include config.mk
3
+ PREFIX? =/usr/local
4
+ BINDIR =${PREFIX}/bin
4
5
5
- install :
6
- @echo Installing to ${PREFIX} /bin ...
7
- @mkdir -p ${PREFIX} /bin
8
- @cp -f bin/gister ${PREFIX} /bin/gister
9
- @chmod 755 ${PREFIX} /bin/gister
6
+ install : ${NAME}
7
+ @mkdir -p ${BINDIR}
8
+ @install -c -m 755 bin/${NAME} ${BINDIR} /${NAME}
10
9
11
10
uninstall :
12
- @echo Uninstalling from ${PREFIX} /bin ...
13
- @rm -f ${PREFIX} /bin/gister
11
+ @rm -f ${BINDIR} /${NAME}
Original file line number Diff line number Diff line change @@ -74,8 +74,15 @@ You need to install its dependencies mentioned before yourself.
74
74
cd gister
75
75
make install
76
76
77
- - Edit ` config.mk ` if you do not want to install it to ` /usr/local ` .
78
- - Compatible with both GNU and BSD make.
77
+ By default gister will be installed into ` /usr/local/bin/gister ` .
78
+ Change ` PREFIX ` to install r3c to another directory.
79
+ For example:
80
+
81
+ ``` sh
82
+ make PREFIX=~ /.local install
83
+ ```
84
+
85
+ The Makefile is compatible with both GNU and BSD make.
79
86
80
87
To uninstall:
81
88
@@ -84,6 +91,13 @@ To uninstall:
84
91
; make uninstall
85
92
```
86
93
94
+ If you have changed the ` PREFIX ` variable when installing, you need to use the same value when uninstalling.
95
+ For example:
96
+
97
+ ``` sh
98
+ make PREFIX=~ /.local uninstall
99
+ ```
100
+
87
101
You can also install/uninstall gister via [ basher] .
88
102
89
103
[ basher ] : https://github.com/basherpm/basher
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments