|
|
@ -17,7 +17,7 @@ ifeq (${ENABLE_BASH_COMPLETION}, true) |
|
|
|
endif |
|
|
|
endif |
|
|
|
|
|
|
|
|
|
|
|
ifeq (${ENABLE_ZSH_COMPLETION}, true) |
|
|
|
ifeq (${ENABLE_ZSH_COMPLETION}, true) |
|
|
|
ifeq ($(shell which zsh 2>/dev/null 1>&2 && echo 0), 0)
|
|
|
|
ifeq ($(shell which zsh >/dev/null 2>&1 && echo 0), 0)
|
|
|
|
zshcompletiondir := /usr/share/zsh/site-functions/
|
|
|
|
zshcompletiondir := /usr/share/zsh/site-functions/
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
endif |
|
|
|
endif |
|
|
@ -37,11 +37,6 @@ endif |
|
|
|
|
|
|
|
|
|
|
|
all: build |
|
|
|
all: build |
|
|
|
|
|
|
|
|
|
|
|
# Virtual Environment
|
|
|
|
|
|
|
|
venv/bin/activate: requirements.txt |
|
|
|
|
|
|
|
python3 -m venv venv
|
|
|
|
|
|
|
|
./venv/bin/pip install -r requirements.txt
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Dist and web-greeter directories
|
|
|
|
# Dist and web-greeter directories
|
|
|
|
build/dist := ${BUILD_DIR}/dist |
|
|
|
build/dist := ${BUILD_DIR}/dist |
|
|
|
build/web-greeter := ${BUILD_DIR}/web-greeter |
|
|
|
build/web-greeter := ${BUILD_DIR}/web-greeter |
|
|
@ -66,8 +61,8 @@ $(bundle.js): $(build/web-greeter) |
|
|
|
|
|
|
|
|
|
|
|
resources.py := ${BUILD_DIR}/web-greeter/resources.py
|
|
|
|
resources.py := ${BUILD_DIR}/web-greeter/resources.py
|
|
|
|
|
|
|
|
|
|
|
|
$(resources.py): venv/bin/activate $(bundle.js) |
|
|
|
$(resources.py): $(bundle.js) |
|
|
|
@./venv/bin/pyrcc5 -o ${BUILD_DIR}/web-greeter/resources.py\
|
|
|
|
@pyrcc5 -o ${BUILD_DIR}/web-greeter/resources.py\
|
|
|
|
${BUILD_DIR}/web-greeter/resources/resources.qrc
|
|
|
|
${BUILD_DIR}/web-greeter/resources/resources.qrc
|
|
|
|
@cp ${resources.py} src/
|
|
|
|
@cp ${resources.py} src/
|
|
|
|
@echo "✔ Resources compiled with pyrcc5"
|
|
|
|
@echo "✔ Resources compiled with pyrcc5"
|
|
|
@ -209,7 +204,7 @@ $(bin_local/web-greeter): build_install_root $(resources.py) $(bin/screensaver.s |
|
|
|
|
|
|
|
|
|
|
|
# Useful rules
|
|
|
|
# Useful rules
|
|
|
|
.PHONY: build |
|
|
|
.PHONY: build |
|
|
|
build: venv/bin/activate $(bin_local/web-greeter) |
|
|
|
build: $(bin_local/web-greeter) |
|
|
|
@echo "✔ Build succeded"
|
|
|
|
@echo "✔ Build succeded"
|
|
|
|
|
|
|
|
|
|
|
|
.PHONY: install |
|
|
|
.PHONY: install |
|
|
@ -247,11 +242,11 @@ uninstall: uninstall_preserve |
|
|
|
@echo " web-greeter config was not uninstalled. Remove it manually or use \`make uninstall_all\`:\
|
|
|
|
@echo " web-greeter config was not uninstalled. Remove it manually or use \`make uninstall_all\`:\
|
|
|
|
\n${config/web-greeter}"
|
|
|
|
\n${config/web-greeter}"
|
|
|
|
|
|
|
|
|
|
|
|
run: venv/bin/activate $(resources.py) |
|
|
|
run: $(resources.py) |
|
|
|
./venv/bin/python3 src
|
|
|
|
python3 src
|
|
|
|
|
|
|
|
|
|
|
|
run_debug: venv/bin/activate $(resources.py) |
|
|
|
run_debug: $(resources.py) |
|
|
|
./venv/bin/python3 src --debug
|
|
|
|
python3 src --debug
|
|
|
|
|
|
|
|
|
|
|
|
clean: |
|
|
|
clean: |
|
|
|
rm -rf venv ${INSTALL_ROOT} ${BUILD_DIR}/dist ${BUILD_DIR}/web-greeter
|
|
|
|
rm -rf ${INSTALL_ROOT} ${BUILD_DIR}/dist ${BUILD_DIR}/web-greeter
|
|
|
|