From 6a93794737981247a1acb72704c172ef858153ad Mon Sep 17 00:00:00 2001 From: Sam Chudnick Date: Sun, 17 Jul 2022 20:20:23 -0400 Subject: Initial commit --- Makefile | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..5723c45 --- /dev/null +++ b/Makefile @@ -0,0 +1,18 @@ +PREFIX = /usr/local +BINDIR = $(PREFIX)/bin +SRCDIR = $(PREFIX)/src +JOCDIR = $(SRCDIR)/joc + +install: + mkdir -p $(DESTDIR)$(BINDIR) + mkdir -p $(DESTDIR)$(SRCDIR) + mkdir -p $(DESTDIR)$(JOCDIR) + cp -rf *.py jellyfin_apiclient_python/ $(DESTDIR)$(JOCDIR) + chmod 755 $(DESTDIR)$(JOCDIR)/joc.py + ln -s $(DESTDIR)$(JOCDIR)/joc.py $(DESTDIR)$(BINDIR)/joc + +uninstall: + rm -rf $(DESTDIR)$(JOCDIR) + rm -f $(DESTDIR)$(BINDIR)/joc + +.PHONY: install uninstall -- cgit v1.2.3