mirror of
https://github.com/morten-olsen/configs.git
synced 2026-02-08 00:46:24 +01:00
first commit
This commit is contained in:
27
Makefile
Normal file
27
Makefile
Normal file
@@ -0,0 +1,27 @@
|
||||
.PHONY: setup update-requirements .venv lint lint-fix setup-local clean
|
||||
|
||||
.venv: .venv/touchfile
|
||||
|
||||
.venv/touchfile: requirements.txt
|
||||
test -d venv || virtualenv .venv
|
||||
. .venv/bin/activate; pip install -Ur requirements.txt
|
||||
touch .venv/touchfile
|
||||
|
||||
update-requirements:
|
||||
. .venv/bin/activate; pip freeze > requirements.txt
|
||||
|
||||
install: .venv
|
||||
|
||||
lint: .venv
|
||||
. .venv/bin/activate; \
|
||||
ansible-lint playbooks/*.yml
|
||||
|
||||
lint-fix: .venv
|
||||
. .venv/bin/activate; \
|
||||
ansible-lint --fix playbooks/*.yml
|
||||
|
||||
setup-local: .venv
|
||||
./scripts/setup-local.sh
|
||||
|
||||
clean:
|
||||
rm -rf .venv
|
||||
Reference in New Issue
Block a user