|
@@ -1,10 +1,11 @@
|
|
-.PHONY: clean install help test run dependencies docs
|
|
|
|
|
|
+.PHONY: clean install help test lint run dependencies docs
|
|
|
|
|
|
help:
|
|
help:
|
|
@echo " clean remove unwanted stuff"
|
|
@echo " clean remove unwanted stuff"
|
|
@echo " install install dependencies and flaskbb"
|
|
@echo " install install dependencies and flaskbb"
|
|
@echo " devconfig generates a development config"
|
|
@echo " devconfig generates a development config"
|
|
@echo " test run the testsuite"
|
|
@echo " test run the testsuite"
|
|
|
|
+ @echo " lint check the source for style errors"
|
|
@echo " run run the development server with the development config"
|
|
@echo " run run the development server with the development config"
|
|
@echo " docs build the documentation"
|
|
@echo " docs build the documentation"
|
|
|
|
|
|
@@ -32,3 +33,9 @@ install:dependencies
|
|
|
|
|
|
docs:
|
|
docs:
|
|
$(MAKE) -C docs html
|
|
$(MAKE) -C docs html
|
|
|
|
+
|
|
|
|
+lint:check
|
|
|
|
+ flake8
|
|
|
|
+
|
|
|
|
+check:
|
|
|
|
+ @type flake8 >/dev/null 2>&1 || echo "Flake8 is not installed. You can install it with 'pip install flake8'."
|