danmaku2ass/Makefile

27 lines
463 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
MKDIR=mkdir -p
PYTHON=python3
RM=rm -f -v
all:
install:
2013-10-01 08:55:42 +08:00
$(INSTALL) -Dm0755 danmaku2ass.py "$(DESTDIR)$(PREFIX)/bin/danmaku2ass"
$(MKDIR) "$(DESTDIR)$(PREFIX)/share"
$(CP) -R locale "$(DESTDIR)$(PREFIX)/share/"
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 08:55:42 +08:00
$(RM) "$(DESTDIR)$(PREFIX)/bin/danmaku2ass"
$(RM) "$(DESTDIR)$(PREFIX)/share/locale/"*"/LC_MESSAGES/danmaku2ass."*
2013-09-30 23:49:45 +08:00