29 lines
427 B
Makefile
29 lines
427 B
Makefile
MAKEFLAGS += --jobs=2
|
|
|
|
SOURCE = /home/jer/git/fnordig.de/_site/
|
|
DEST = /var/www/sites/fnordig.de/
|
|
|
|
default: serve rerun
|
|
.PHONY: default
|
|
|
|
build:
|
|
cobalt build --drafts
|
|
.PHONY: build
|
|
|
|
serve: build
|
|
@echo "Served on http://localhost:8000"
|
|
cd _site && http
|
|
.PHONY: serve
|
|
|
|
deploy: clean build
|
|
rsync -va --delete $(SOURCE) $(DEST)
|
|
.PHONY: deploy
|
|
|
|
clean:
|
|
cobalt clean
|
|
.PHONY: clean
|
|
|
|
rerun:
|
|
fd | entr -s 'make build'
|
|
.PHONY: rerun
|