]> git.armaanb.net Git - lightcards.git/blobdiff - Makefile
Comment and clean code
[lightcards.git] / Makefile
index b6b67278abeb19226e29a9b2fa13f0038465b418..a126ed9334620f07770ac5b8838c36658c222d15 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,19 +1,21 @@
-.DEFAULT_GOAL := install
+.DEFAULT_GOAL := local
 
-prep:
-       mkdir -p /usr/local/bin
-       mkdir -p /usr/local/man/man1
+global:
+       pip install .
+       mkdir -p /usr/share/man/man1/
+       cp man/lightcards.1 ~/.local/share/man/man1/
+       cp ./lightcards.sh /usr/local/bin/lightcards
 
-install:
-       make prep
-       mkdir -p /usr/local/share/lightcards/
-       cp lightcards.py /usr/local/bin/lightcards
-       cp man/lightcards.1 /usr/local/man/man1/
+local:
+       pip install .
+       mkdir -p ~/.local/share/man/man1/
+       cp man/lightcards.1 ~/.local/share/man/man1/
+       cp ./lightcards.sh ~/.local/bin/lightcards
 
-uninstall:
+global-uninstall:
+       pip uninstall lightcards
        rm /usr/local/bin/lightcards
-       rm /usr/local/man/man1/lightcards.1
 
-reinstall:
-       make uninstall
-       make install
+local-uninstall:
+       pip uninstall lightcards
+       rm ~/.local/bin/lightcards