Find all the files
This commit is contained in:
parent
0d75452531
commit
acb4217a75
9
Makefile
9
Makefile
@ -1,12 +1,12 @@
|
|||||||
|
rwildcard=$(foreach d,$(wildcard $(1:=/*)),$(call rwildcard,$d,$2) $(filter $(subst *,%,$2),$d))
|
||||||
|
|
||||||
VENV := .env
|
VENV := .env
|
||||||
BIN := $(VENV)/bin
|
BIN := $(VENV)/bin
|
||||||
PYTHON := $(BIN)/python
|
PYTHON := $(BIN)/python
|
||||||
SHELL := /bin/bash
|
SHELL := /bin/bash
|
||||||
MKFILEDIR := $(abspath $(lastword $(MAKEFILE_LIST)))
|
|
||||||
SOURCEDIR := $(notdir $(patsubst %/,%,$(dir $(MKFILEDIR))))
|
|
||||||
|
|
||||||
DOT_DIRS := $(dir $(wildcard $(SOURCEDIR)/*/.*))
|
IGNORE = .git .env
|
||||||
PYFILES := $(filter-out .%,$(shell find $(SOURCEDIR) -name '*.py'))
|
PYFILES := $(filter-out $(IGNORE),$(call rwildcard,.,*.py))
|
||||||
|
|
||||||
|
|
||||||
$(VENV)/touchfile: requirements.txt
|
$(VENV)/touchfile: requirements.txt
|
||||||
@ -27,7 +27,6 @@ migrate: ## Make and run migrations
|
|||||||
|
|
||||||
.PHONY: test
|
.PHONY: test
|
||||||
test: ## Run tests
|
test: ## Run tests
|
||||||
echo $(PYFILES)
|
|
||||||
$(PYTHON) manage.py test application --verbosity=0 --parallel --failfast
|
$(PYTHON) manage.py test application --verbosity=0 --parallel --failfast
|
||||||
|
|
||||||
start: install migrate run
|
start: install migrate run
|
||||||
|
Loading…
Reference in New Issue
Block a user