danmaku2ass/Makefile
Star Brilliant 3a2b3e199f Add Makefile
2013-09-30 23:49:45 +08:00

26 lines
405 B
Makefile

.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."*