use make without arguments for local and remote build

dependabot/pip/urllib3-2.0.7
Yax 1 year ago
parent 9b93adbb4b
commit 1826de7102

3
.gitignore vendored

@ -15,4 +15,5 @@ blog.sublime-project
blog.sublime-workspace
ssl/
.python-version
poetry.toml
poetry.toml
.local

@ -1,12 +1,23 @@
site:
# Makefile
#
# if a file .local exists run site locally
ifeq ($(wildcard .local),)
TARGET = site_remote
else
TARGET = site_local
endif
site: $(TARGET)
echo $(TARGET)
site_remote:
git pull
makesite
systemctl reload nginx
site_local:
site_local:
./makesite.py --params params-local.json
serve: site_local
cd _site && python -m SimpleHTTPServer 2> /dev/null || python3 -m http.server
dock: site_local

Loading…
Cancel
Save