danmaku2ass/Makefile

29 lines
610 B
Makefile
Raw Normal View History

2013-09-30 23:49:45 +08:00
.PHONY: all install clean uninstall
2013-10-01 08:55:42 +08:00
DESTDIR=
2013-09-30 23:49:45 +08:00
PREFIX=/usr/local
CP=cp
INSTALL=install
2013-10-01 09:07:54 +08:00
LN=ln
2013-09-30 23:49:45 +08:00
MKDIR=mkdir -p
PYTHON=python3
RM=rm -f -v
all:
install:
2013-10-01 09:07:54 +08:00
$(MKDIR) "$(DESTDIR)$(PREFIX)/share/danmaku2ass"
2013-11-03 12:38:18 +08:00
$(INSTALL) -Dm0755 danmaku2ass.py "$(DESTDIR)$(PREFIX)/share/danmaku2ass/danmaku2ass.py"
2013-10-01 09:07:54 +08:00
$(CP) -R locale "$(DESTDIR)$(PREFIX)/share/danmaku2ass/"
$(MKDIR) "$(DESTDIR)$(PREFIX)/bin"
$(LN) -s "$(PREFIX)/share/danmaku2ass/danmaku2ass.py" "$(DESTDIR)$(PREFIX)/bin/danmaku2ass"
2013-09-30 23:49:45 +08:00
clean:
2013-10-01 08:55:42 +08:00
$(RM) -R __pycache__
2013-09-30 23:49:45 +08:00
uninstall:
2013-10-01 09:17:44 +08:00
$(RM) -R "$(DESTDIR)$(PREFIX)/bin/danmaku2ass" "$(DESTDIR)$(PREFIX)/share/danmaku2ass"
2013-09-30 23:49:45 +08:00