summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorrafa_99 <rafa99@protonmail.com>2020-09-23 13:59:55 +0000
committerrafa_99 <rafa99@protonmail.com>2020-09-23 13:59:55 +0000
commitf67133f8b6a37b1173a46ad16da5453fe29346ca (patch)
tree65e38d6a519fee527728592d487ddbeea66e3785 /Makefile
parent17b5e82c5392cbd9d38e6efa44945d304d28e6e5 (diff)
Updated Makefile
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile18
1 files changed, 16 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index f7f8efc..d01535a 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,19 @@
-all: clean
- cc -o pkg pkg.c utils.c actions.c
+all: pkg
+
+pkg:
+ cc -o pkg pkg.c actions.c utils.c
clean:
rm -rf pkg
+
+install: all
+ mkdir -p /usr/local/bin
+ cp -f pkg /usr/local/bin
+ chmod 755 /usr/local/bin
+ # mkdir -p /local/share/man/man1
+ # cp -f pkg.1 /local/share/man/man1
+ # chmod 644 /local/share/man/man1/pkg.1
+
+uninstall:
+ rm -rf /usr/local/bin/pkg
+ # rm -f /local/share/man/man1/pkg.1