aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile18
1 files changed, 18 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..5723c45
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,18 @@
1PREFIX = /usr/local
2BINDIR = $(PREFIX)/bin
3SRCDIR = $(PREFIX)/src
4JOCDIR = $(SRCDIR)/joc
5
6install:
7 mkdir -p $(DESTDIR)$(BINDIR)
8 mkdir -p $(DESTDIR)$(SRCDIR)
9 mkdir -p $(DESTDIR)$(JOCDIR)
10 cp -rf *.py jellyfin_apiclient_python/ $(DESTDIR)$(JOCDIR)
11 chmod 755 $(DESTDIR)$(JOCDIR)/joc.py
12 ln -s $(DESTDIR)$(JOCDIR)/joc.py $(DESTDIR)$(BINDIR)/joc
13
14uninstall:
15 rm -rf $(DESTDIR)$(JOCDIR)
16 rm -f $(DESTDIR)$(BINDIR)/joc
17
18.PHONY: install uninstall