You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
426 B
20 lines
426 B
10 years ago
|
# match default value of app_name from cookiecutter.json
|
||
|
COOKIE := myflaskapp
|
||
|
COOKIE_JAR := {{cookiecutter.app_name}}
|
||
|
COOKIE_CRUMBS := $(shell find $(COOKIE_JAR))
|
||
|
|
||
|
.PHONY: all
|
||
|
all: test
|
||
|
|
||
|
.PHONY: test
|
||
|
test: $(COOKIE)
|
||
|
cd $(COOKIE); pip install -r requirements/dev.txt
|
||
|
cd $(COOKIE); python manage.py test
|
||
|
|
||
|
$(COOKIE): Makefile cookiecutter.json $(COOKIE_CRUMBS)
|
||
|
cookiecutter . --no-input
|
||
|
|
||
|
.PHONY: clean
|
||
|
clean:
|
||
|
rm -r $(COOKIE)
|