Skip to content

Commit

Permalink
Add target uninstall in Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
coditva committed Nov 2, 2017
1 parent 2cd067a commit 5771d15
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
11 changes: 11 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,17 @@ install: all
cp ./app.desktop $(DESTDIR)/usr/local/share/applications/bitsnet.desktop
echo "OK"

uninstall:
echo
echo "Removing files"
rm -f $(DESTDIR)/usr/local/lib/bitsnet/util.sh
rmdir $(DESTDIR)/usr/local/lib/bitsnet
rm -f $(DESTDIR)/usr/local/etc/bitsnetrc
rm -f $(DESTDIR)/usr/local/bin/bitsnet
rm -f $(DESTDIR)/usr/local/man/man1/bitsnet.1.gz
rm -f $(DESTDIR)/usr/local/share/applications/bitsnet.desktop
echo "OK."


# Clean the working directory
.PHONY: clean
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,12 @@ Use terminal to issue this command: ```bitsnet```

## How to install
- Fire up a terminal and punch in these commands:
```
```bash
git clone https://github.com/OSDLabs/BitsnetLogin
cd BitsnetLogin
make
sudo make install
make uninstall # to uninstall
```
- You can now login via terminal (`bitsnet`) or by launching the app from launcher
- Run `man bitsnet` or `bitsnet -h` for help
Expand Down

0 comments on commit 5771d15

Please sign in to comment.