-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
34 lines (24 loc) · 883 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
31
INSTALL_DIR ?= ~/.config/rofi/scripts/rofi-file-selector
SHELL=bash
FILES=chooseexe.sh fd_cache.sh mimeapps mimeapps.sh config.sh.example
IMG_VERSION=0.3
.DEFAULT_GOAL := help
.PHONY: help
help: ### Print this help message
@grep -h -E '^[a-zA-Z0-9_-]+:.*?## .*$$' $(MAKEFILE_LIST) \
| sed -n 's/^\(.*\):\(.*\)##\(.*\)/\1▅\3/p' \
| column -t -s '▅'
.PHONY: doc
doc: README.md ## Update README with configuration example file
mdsh
.PHONY: install
install: ## Install to INSTALL_DIR variable (make INSTALL_DIR=/tmp)
mkdir -p ${INSTALL_DIR}
cp ${FILES} ${INSTALL_DIR}
.PHONY: test
test: ## Run test (use bats)
bats tests
.PHONY: docker
docker: ## Build and push docker CI image
docker build -t registry.gitlab.com/matclab/rofi-file-selector/rfs-test:${IMG_VERSION} docker \
&& docker push registry.gitlab.com/matclab/rofi-file-selector/rfs-test:${IMG_VERSION}