-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakefile
37 lines (29 loc) · 1.04 KB
/
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
32
33
34
35
36
37
VERSION="1.0"
pname="Teste-MKDocs"
SHELL := /bin/bash
.PHONY: help requirements.txt
help: ## Shows this help
@grep -E '^[.a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
version: ## Shows this version
@echo "A versão do Makefile é: $(VERSION)"
venv: ## Create a new Python virtual environment
@python3 -m venv venv
pip: venv requirements.txt ## Installing the dependencies on virtual environment
@source venv/bin/activate \
&& pip3 install --upgrade pip \
&& pip3 install --trusted-host pypi.org --trusted-host files.pythonhosted.org --no-cache-dir -r requirements.txt
create: ## Create a new website
@source venv/bin/activate \
&& mkdocs new $(pname)
start: ## Start the dev env
@source venv/bin/activate \
&& mkdocs serve
build: ## Build the project
@source venv/bin/activate \
&& mkdocs build
git: build ## Push to Github
@git fetch origin \
&& git add . \
&& git commit -m "Making a new test." \
&& git pull --no-rebase origin \
&& git push origin