diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 18 |
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 @@ | |||
1 | PREFIX = /usr/local | ||
2 | BINDIR = $(PREFIX)/bin | ||
3 | SRCDIR = $(PREFIX)/src | ||
4 | JOCDIR = $(SRCDIR)/joc | ||
5 | |||
6 | install: | ||
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 | |||
14 | uninstall: | ||
15 | rm -rf $(DESTDIR)$(JOCDIR) | ||
16 | rm -f $(DESTDIR)$(BINDIR)/joc | ||
17 | |||
18 | .PHONY: install uninstall | ||