From: Armaan Bhojwani Date: Tue, 5 Jan 2021 19:36:32 +0000 (-0500) Subject: Add extract.py script to Makefile X-Git-Tag: v1.0.1~2 X-Git-Url: https://git.armaanb.net/?p=phrases.git;a=commitdiff_plain;h=2a484450ca0f9c5280e008b2ad33695d17fe1796 Add extract.py script to Makefile --- diff --git a/Makefile b/Makefile index feacce8..f2be9a7 100644 --- a/Makefile +++ b/Makefile @@ -8,11 +8,20 @@ install: 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 diff --git a/README.md b/README.md index b38c180..8ceb359 100644 --- a/README.md +++ b/README.md @@ -3,14 +3,15 @@ Latin famous phrases in the terminal ## 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