Find all the files

This commit is contained in:
Chris Giacofei 2024-06-03 13:55:47 -04:00
parent 0d75452531
commit acb4217a75

View File

@ -1,12 +1,12 @@
rwildcard=$(foreach d,$(wildcard $(1:=/*)),$(call rwildcard,$d,$2) $(filter $(subst *,%,$2),$d))
VENV := .env
BIN := $(VENV)/bin
PYTHON := $(BIN)/python
SHELL := /bin/bash
MKFILEDIR := $(abspath $(lastword $(MAKEFILE_LIST)))
SOURCEDIR := $(notdir $(patsubst %/,%,$(dir $(MKFILEDIR))))
DOT_DIRS := $(dir $(wildcard $(SOURCEDIR)/*/.*))
PYFILES := $(filter-out .%,$(shell find $(SOURCEDIR) -name '*.py'))
IGNORE = .git .env
PYFILES := $(filter-out $(IGNORE),$(call rwildcard,.,*.py))
$(VENV)/touchfile: requirements.txt
@ -27,7 +27,6 @@ migrate: ## Make and run migrations
.PHONY: test
test: ## Run tests
echo $(PYFILES)
$(PYTHON) manage.py test application --verbosity=0 --parallel --failfast
start: install migrate run