summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorDmitry Ilvokhin <d@ilvokhin.com>2023-02-05 14:06:50 +0000
committerDmitry Ilvokhin <d@ilvokhin.com>2023-02-05 14:06:50 +0000
commit922c5697f64f973a6d0f02945cdae53f2f90cc96 (patch)
treeff85abada94b634bcaaff60fababc3d94cb65c05 /Makefile
parent4d727570a469f40d124038e4c3f2b05c9185c637 (diff)
downloadblog-922c5697f64f973a6d0f02945cdae53f2f90cc96.tar.gz
blog-922c5697f64f973a6d0f02945cdae53f2f90cc96.tar.bz2
blog-922c5697f64f973a6d0f02945cdae53f2f90cc96.zip
Add format target to Makefile
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index fda9128..62fac4f 100644
--- a/Makefile
+++ b/Makefile
@@ -3,12 +3,15 @@ SHARE := $(shell find share -name '*' 2> /dev/null)
POSTS := $(shell find posts -name '*' 2> /dev/null)
CODE := $(shell find blog -name '*.py' 2> /dev/null)
-.PHONY: clean server
+.PHONY: clean server format
remote: $(TEMPLATES) $(SHARE) $(POSTS) $(CODE)
mypy --strict blog
python3 blog/blog.py
+format: $(CODE)
+ pycodestyle $(CODE)
+
server: remote
python3 -m http.server --directory remote