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