-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
30 lines (20 loc) · 858 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
28
29
30
EXT_NAME:=ulauncher-shortcuts
EXT_DIR:=$(shell pwd)
.PHONY: help lint format link unlink deps dev setup
.DEFAULT_GOAL := help
setup: ## Setups the project
pre-commit install
lint: ## Run Lint
@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 -r ~/.local/share/ulauncher/extensions/${EXT_NAME}
deps: ## Install Python Dependencies
@pip3 install -r requirements.txt
dev: ## Runs ulauncher on development mode
ulauncher -v --dev --no-extensions |& grep "${EXT_NAME}"
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}'