Remove deprecated site_remote target

This commit is contained in:
Yax 2025-09-28 11:40:03 +02:00
parent 78ef5cef23
commit 12e6465264

View file

@ -1,31 +1,18 @@
# Makefile
# build target should be built even if no files depend on it
.PHONY: build
# if a file .local exists run site locally
ifeq ($(wildcard .local),)
TARGET = site_remote
else
TARGET = site_local
endif
site: site_local
echo $(TARGET)
site_remote:
git pull
makesite
systemctl reload nginx
site_local:
# run locally
site:
uv run python makesite.py --params params-local.json
cd _site && python -m SimpleHTTPServer 2> /dev/null || python3 -m http.server
# docker build
# docker build image
build:
docker build -t source.madyanne.fr/yax/blog .
# docker publish
# docker publish image
publish:
docker push source.madyanne.fr/yax/blog