Update Makefile

This commit is contained in:
Star Brilliant 2013-10-01 08:55:42 +08:00
parent bc3e0193a8
commit 8c7e2f0998

View File

@ -1,6 +1,7 @@
.PHONY: all install clean uninstall .PHONY: all install clean uninstall
DESTDIR=
PREFIX=/usr/local PREFIX=/usr/local
CP=cp CP=cp
@ -12,14 +13,14 @@ RM=rm -f -v
all: all:
install: install:
$(INSTALL) -Dm0755 danmaku2ass.py "$(PREFIX)/bin/danmaku2ass" $(INSTALL) -Dm0755 danmaku2ass.py "$(DESTDIR)$(PREFIX)/bin/danmaku2ass"
$(MKDIR) "$(PREFIX)/share" $(MKDIR) "$(DESTDIR)$(PREFIX)/share"
$(CP) -R locale "$(PREFIX)/share/" $(CP) -R locale "$(DESTDIR)$(PREFIX)/share/"
clean: clean:
$(RM) danmaku2ass.pyo $(RM) -R __pycache__
uninstall: uninstall:
$(RM) "$(PREFIX)/bin/danmaku2ass" $(RM) "$(DESTDIR)$(PREFIX)/bin/danmaku2ass"
$(RM) "$(PREFIX)/share/locale/"*"/LC_MESSAGES/danmaku2ass."* $(RM) "$(DESTDIR)$(PREFIX)/share/locale/"*"/LC_MESSAGES/danmaku2ass."*