]> git.armaanb.net Git - phrases.git/commitdiff
Add extract.py script to Makefile
authorArmaan Bhojwani <me@armaanb.net>
Tue, 5 Jan 2021 19:36:32 +0000 (14:36 -0500)
committerArmaan Bhojwani <me@armaanb.net>
Tue, 5 Jan 2021 19:36:32 +0000 (14:36 -0500)
Makefile
README.md

index feacce8c344bde2da4178479904a60f2c3832feb..f2be9a76db035135a7cdf9c637ec7377c748b2c7 100644 (file)
--- 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
index b38c18097d989810f2d73ee8e73b0d63222c3d3f..8ceb3590272745391fe93435caf90a7c47b12fb2 100644 (file)
--- 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