aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorSam Chudnick <sam@chudnick.com>2022-07-17 20:20:23 -0400
committerSam Chudnick <sam@chudnick.com>2022-07-17 20:20:23 -0400
commit6a93794737981247a1acb72704c172ef858153ad (patch)
tree0a8a879ace1eecf8511681c453edd0cbbc0cdd00 /Makefile
Initial commit
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