mirror of
https://github.com/nishiki/manage-password.git
synced 2024-11-27 07:33:05 +00:00
Add Makefile for install on system (/usr/local/mpw)
This commit is contained in:
parent
3e9e5e18d5
commit
fe51dafd17
1 changed files with 21 additions and 0 deletions
21
Makefile
Normal file
21
Makefile
Normal file
|
@ -0,0 +1,21 @@
|
|||
all:
|
||||
$(info 'Nothing todo!')
|
||||
$(info 'Use make install or make uninstall')
|
||||
|
||||
|
||||
install:
|
||||
mkdir -p /usr/local/mpw
|
||||
cp -rv ./MPW /usr/local/mpw/
|
||||
cp -rv ./i18n /usr/local/mpw/
|
||||
cp -v ./mpw /usr/local/mpw/
|
||||
ln -snvf /usr/local/mpw/mpw /usr/local/bin/
|
||||
cp -v ./mpw-server /usr/local/mpw/
|
||||
ln -snvf /usr/local/mpw/mpw-server /usr/local/bin/mpw-server
|
||||
cp -v ./mpw-ssh /usr/local/mpw/
|
||||
ln -snvf /usr/local/mpw/mpw-ssh /usr/local/bin/mpw-ssh
|
||||
|
||||
uninstall:
|
||||
rm -v /usr/local/bin/mpw-server
|
||||
rm -v /usr/local/bin/mpw
|
||||
rm -v /usr/local/bin/mpw-ssh
|
||||
rm -rf /usr/local/mpw
|
Loading…
Reference in a new issue