-
-
Notifications
You must be signed in to change notification settings - Fork 12
/
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-github
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
@flake8
format: ## Format code using yapf
@yapf --in-place --recursive .
link: ## Symlink the project source directory with Ulauncher extensions dir.
@ln -s ${EXT_DIR} ~/.local/share/ulauncher/extensions/${EXT_NAME}
unlink: ## Unlink extension from Ulauncher
@rm -rf ~/.local/share/ulauncher/extensions/${EXT_NAME}
deps: ## Install Python Dependencies
@pip3 install -r requirements.txt
dev: ## Runs ulauncher on development mode
ulauncher --no-extensions --dev -v |& grep "ulauncher-github"