mirror of
https://github.com/ONLYOFFICE/document-server-integration.git
synced 2026-04-07 14:06:11 +08:00
35 lines
901 B
Makefile
35 lines
901 B
Makefile
.DEFAULT_GOAL := help
|
|
|
|
.PHONY: help
|
|
help: # Show help message for each of the Makefile recipes.
|
|
@grep -E "^[a-z-]+: #" $(MAKEFILE_LIST) | \
|
|
sort | \
|
|
awk 'BEGIN {FS = ": # "}; {printf "%s: %s\n", $$1, $$2}'
|
|
|
|
.PHONY: dev
|
|
dev: # Install development dependencies.
|
|
@pip install --editable .[development]
|
|
|
|
.PHONY: lint
|
|
lint: # Lint the source code for style and check for types.
|
|
@flake8
|
|
@mypy .
|
|
|
|
.PHONY: prod
|
|
prod: # Install production dependencies.
|
|
@pip install .
|
|
|
|
.PHONY: server-dev
|
|
server-dev: # Start the development server on localhost at $PORT (default: 8000).
|
|
@python manage.py runserver
|
|
|
|
.PHONY: server-prod
|
|
server-prod: \
|
|
export DEBUG := false
|
|
server-prod: # Start the production server on 0.0.0.0 at $PORT (default: 8000).
|
|
@python manage.py runserver
|
|
|
|
.PHONY: test
|
|
test: # Recursively run the tests.
|
|
@python -m unittest ./src/**/*_tests.py
|