diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..54220b0 --- /dev/null +++ b/Makefile @@ -0,0 +1,12 @@ +PREFIX = /usr/local + +make: + @echo "usage: make [install|uninstall]" + +install: + mkdir -p ${PREFIX}/bin + cp -f udict ${PREFIX}/bin + chmod 755 ${PREFIX}/bin/udict + +uninstall: + rm -f ${PREFIX}/bin/udict diff --git a/README.md b/README.md index 0d94189..caa0011 100644 --- a/README.md +++ b/README.md @@ -6,9 +6,11 @@ Simple script that uses simple dictionary to get the most liked/correct definiti ```bash $ udict smh -meaning, "[shaking my head]", smh is typically used when something is obvious, [plain old stupid], or [disappointment]. +meaning, "shaking my head", smh is typically used when something is obvious, plain old stupid, or disappointment. ``` ## Installation - -just copy the script to your path +> as root +```bash +sudo make install +```