-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
27 lines (18 loc) · 827 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
EXT_NAME:=com.github.com.brpaz.ulauncher-tilix
EXT_DIR:=$(shell pwd)
.PHONY: help lint format link unlink deps dev
.DEFAULT_TARGET: help
help: ## Show help menu
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
lint: ## Run Pylint
@find . -iname "*.py" | xargs pylint
format: ## Format code using yapf
@yapf --in-place --recursive .
link: ## Symlink the project source directory with Ulauncher extensions dir.
@ln -s ${EXT_DIR} ~/.cache/ulauncher_cache/extensions/${EXT_NAME}
unlink: ## Unlink extension from Ulauncher
@rm -r ~/.cache/ulauncher_cache/extensions/${EXT_NAME}
deps: ## Install Python Dependencies
@pip3 install -r requirements.txt
dev: ## Runs ulauncher on development mode
ulauncher --no-extensions --dev -v