]> git.armaanb.net Git - lightcards.git/blobdiff - Makefile
Add reverse option
[lightcards.git] / Makefile
index b6b67278abeb19226e29a9b2fa13f0038465b418..671607888263821072c1e021e6377c9401e3d24c 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,19 +1,17 @@
-.DEFAULT_GOAL := install
+.DEFAULT_GOAL := local
 
-prep:
-       mkdir -p /usr/local/bin
-       mkdir -p /usr/local/man/man1
+global:
+       pip install .
+       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 .
+       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