mirror of
https://github.com/nishiki/manage-password.git
synced 2024-11-27 07:33:05 +00:00
Install ubuntu package in makefile
This commit is contained in:
parent
fe51dafd17
commit
07f7aa5b67
1 changed files with 13 additions and 11 deletions
24
Makefile
24
Makefile
|
@ -2,20 +2,22 @@ all:
|
|||
$(info 'Nothing todo!')
|
||||
$(info 'Use make install or make uninstall')
|
||||
|
||||
dep-ubuntu:
|
||||
apt-get install ruby ruby-gpgme ruby-highline ruby-i18n ruby-locale
|
||||
|
||||
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
|
||||
cp -r ./MPW /usr/local/mpw/
|
||||
cp -r ./i18n /usr/local/mpw/
|
||||
cp ./mpw /usr/local/mpw/
|
||||
ln -snf /usr/local/mpw/mpw /usr/local/bin/
|
||||
cp ./mpw-server /usr/local/mpw/
|
||||
ln -snf /usr/local/mpw/mpw-server /usr/local/bin/mpw-server
|
||||
cp ./mpw-ssh /usr/local/mpw/
|
||||
ln -snf /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 /usr/local/bin/mpw-server
|
||||
rm /usr/local/bin/mpw
|
||||
rm /usr/local/bin/mpw-ssh
|
||||
rm -rf /usr/local/mpw
|
||||
|
|
Loading…
Reference in a new issue