From 3a2b3e199fa1b1090ea87d3be878e6d7ae87c9c4 Mon Sep 17 00:00:00 2001 From: Star Brilliant Date: Mon, 30 Sep 2013 23:49:45 +0800 Subject: [PATCH] Add Makefile --- Makefile | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..04a4660 --- /dev/null +++ b/Makefile @@ -0,0 +1,25 @@ + +.PHONY: all install clean uninstall + +PREFIX=/usr/local + +CP=cp +INSTALL=install +MKDIR=mkdir -p +PYTHON=python3 +RM=rm -f -v + +all: + +install: + $(INSTALL) -Dm0755 danmaku2ass.py "$(PREFIX)/bin/danmaku2ass" + $(MKDIR) "$(PREFIX)/share" + $(CP) -R locale "$(PREFIX)/share/" + +clean: + $(RM) danmaku2ass.pyo + +uninstall: + $(RM) "$(PREFIX)/bin/danmaku2ass" + $(RM) "$(PREFIX)/share/locale/"*"/LC_MESSAGES/danmaku2ass."* +