Add "header" in Makefiles

pull/21/head
JensDiemer 2020-11-14 10:55:05 +01:00
rodzic 7e609e4762
commit e55a0b1524
4 zmienionych plików z 16 dodań i 4 usunięć

Wyświetl plik

@ -2,7 +2,11 @@ SHELL := /bin/bash
MAX_LINE_LENGTH := 119
export DJANGO_SETTINGS_MODULE ?= inventory_project.settings.local
help: ## List all commands
all: help
help:
@echo -e '_________________________________________________________________'
@echo -e 'PyInventory - *dev* Makefile\n'
@awk 'BEGIN {FS = ":.*?## "} /^[a-zA-Z0-9 -]+:.*?## / {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST)
check-poetry:

Wyświetl plik

@ -63,7 +63,9 @@ Read [[https://github.com/jedie/PyInventory/tree/master/deployment#readme|/deplo
~$ git clone https://github.com/jedie/PyInventory.git
~$ cd PyInventory/
~/PyInventory$ make
help List all commands
_________________________________________________________________
PyInventory - *dev* Makefile
install-poetry install or update poetry
install install PyInventory via poetry
manage-update Collectstatic + makemigration + migrate

Wyświetl plik

@ -1,6 +1,10 @@
SHELL := /bin/bash
help: ## List all commands
all: help
help:
@echo -e '_________________________________________________________________'
@echo -e 'PyInventory - *deployment* Makefile\n'
@awk 'BEGIN {FS = ":.*?## "} /^[a-zA-Z0-9 -_]+:.*?## / {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST)
check-poetry:

Wyświetl plik

@ -101,7 +101,9 @@ install some base packages, e.g.:
# Theses Makefile targets exists:
~/PyInventory/deployment$ make
help List all commands
_________________________________________________________________
PyInventory - *deployment* Makefile
install-poetry install or update poetry
install install requirements to setup project
update update the sources and docker containers