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 e30017d..caa0011 100644 --- a/README.md +++ b/README.md @@ -10,5 +10,7 @@ meaning, "shaking my head", smh is typically used when something is obvious, pla ``` ## Installation - -just copy the script to your path +> as root +```bash +sudo make install +```