Made installing VLC support optional

This commit is contained in:
daniel-123 2013-01-27 20:49:13 +01:00
parent 53c730c715
commit d64d74eecf

View File

@ -1,5 +1,9 @@
SINGLE_USER = false SINGLE_USER = false
ifndef VLC_SUPPORT
VLC_SUPPORT = false
endif
BASE_PATH = /usr BASE_PATH = /usr
LOCAL_PATH = ~/.local LOCAL_PATH = ~/.local
@ -34,14 +38,17 @@ client:
echo '#!/bin/sh\npython -OO $(LIB_PATH)/syncplay/syncplayClient.py "$$@"' > $(BIN_PATH)/syncplay echo '#!/bin/sh\npython -OO $(LIB_PATH)/syncplay/syncplayClient.py "$$@"' > $(BIN_PATH)/syncplay
chmod a+x $(BIN_PATH)/syncplay chmod a+x $(BIN_PATH)/syncplay
cp syncplayClient.py $(LIB_PATH)/syncplay/ cp syncplayClient.py $(LIB_PATH)/syncplay/
-mkdir -p $(SHARE_PATH)/vlc/lua/intf/
cp resources/syncplay.lua $(SHARE_PATH)/vlc/lua/intf/
cp resources/syncplay.desktop $(APP_SHORTCUT_PATH)/ cp resources/syncplay.desktop $(APP_SHORTCUT_PATH)/
ifeq ($(VLC_SUPPORT),true)
-mkdir -p $(LIB_PATH)/vlc/lua/intf/
cp resources/syncplay.lua $(LIB_PATH)/vlc/lua/intf/
endif
u-client: u-client:
-rm $(BIN_PATH)/syncplay -rm $(BIN_PATH)/syncplay
-rm $(LIB_PATH)/syncplay/syncplayClient.py -rm $(LIB_PATH)/syncplay/syncplayClient.py
-rm $(SHARE_PATH)/vlc/lua/intf/syncplay.lua -rm $(LIB_PATH)/vlc/lua/intf/syncplay.lua
-rm $(APP_SHORTCUT_PATH)/syncplay.desktop -rm $(APP_SHORTCUT_PATH)/syncplay.desktop
server: server: