From acb4217a75ce79b593f9f1ddd929de4d791a6d0b Mon Sep 17 00:00:00 2001 From: Chris Date: Mon, 3 Jun 2024 13:55:47 -0400 Subject: [PATCH] Find all the files --- Makefile | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index c955aa1..0b52e8e 100644 --- a/Makefile +++ b/Makefile @@ -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