cp phrases.db /usr/local/share/phrases/
cp man/phrases.1 /usr/local/man/man1/
+install-extract:
+ mkdir -p /usr/local/bin
+ mkdir -p /usr/local/man/man1
+ cp extract.py /usr/local/bin/phrases-extract
+ cp man/phrases-extract.1 /usr/local/man/man1/
+
uninstall:
rm /usr/local/bin/phrases
+ rm /usr/local/bin/phrases-extract
rm -r /usr/local/share/phrases/
rm /usr/local/man/man1/phrases.1
+ rm /usr/local/man/man1/phrases-extract.1
reinstall:
make uninstall
make install
+ make install-extract
## Installation
### On Linux + MacOS
-`sudo make` to install.
-
-`sudo make uninstall` to uninstall completely.
+`sudo make install` to install the `phrases` script.
+`sudo make install-extract` to install the `phrases-extract` script.
+`sudo make uninstall` to uninstall completely.
+`sudo make reinstall` to reinstall.
The program can also be run without installing as well
### Notes
- * The `extract.py` script requires the beautifulsoup4 Python module.
+ * The `extract.py` script (installed in $PATH as `phrases-extract`) requires the beautifulsoup4 Python module
* Tested and written on Python 3.9.0
## Source of famous phrases