1
Fork 0

Build once before asynchronously serving and watching/rebuilding

This commit is contained in:
Jan-Erik Rediger 2023-01-01 16:29:01 +01:00
parent 3a805b0b5f
commit 99aa51a995

View file

@ -4,6 +4,7 @@ DATABASE_PATH = /home/jer/git/blogsearch/blog.db
default: default:
rm -rf _site rm -rf _site
$(MAKE) build
$(MAKE) MAKEFLAGS=--jobs=2 dev $(MAKE) MAKEFLAGS=--jobs=2 dev
.PHONY: default .PHONY: default
@ -14,7 +15,7 @@ build:
cobalt build --drafts cobalt build --drafts
.PHONY: build .PHONY: build
serve: build serve:
@echo "Served on http://localhost:8000" @echo "Served on http://localhost:8000"
cd _site && http cd _site && http
.PHONY: serve .PHONY: serve