2019-11-12 12:04:49 +00:00
|
|
|
MAKEFLAGS += --jobs=2
|
|
|
|
|
2017-09-07 16:28:57 +00:00
|
|
|
SOURCE = /home/jer/git/fnordig.de/_site/
|
2017-07-09 12:18:22 +00:00
|
|
|
DEST = /var/www/sites/fnordig.de/
|
|
|
|
|
2019-11-12 12:04:49 +00:00
|
|
|
default: serve rerun
|
|
|
|
.PHONY: default
|
|
|
|
|
2017-07-09 12:18:22 +00:00
|
|
|
build:
|
2018-01-23 10:45:10 +00:00
|
|
|
cobalt build --drafts
|
2018-01-15 19:37:09 +00:00
|
|
|
.PHONY: build
|
2017-07-09 12:18:22 +00:00
|
|
|
|
2018-07-20 08:45:17 +00:00
|
|
|
serve: build
|
2019-01-21 16:39:17 +00:00
|
|
|
@echo "Served on http://localhost:8000"
|
2018-07-20 08:45:17 +00:00
|
|
|
cd _site && http
|
2018-01-15 19:37:09 +00:00
|
|
|
.PHONY: serve
|
2017-07-09 12:18:22 +00:00
|
|
|
|
2018-01-15 19:37:09 +00:00
|
|
|
deploy: clean build
|
|
|
|
rsync -va --delete $(SOURCE) $(DEST)
|
|
|
|
.PHONY: deploy
|
|
|
|
|
|
|
|
clean:
|
|
|
|
cobalt clean
|
|
|
|
.PHONY: clean
|
2018-02-11 11:25:15 +00:00
|
|
|
|
|
|
|
rerun:
|
2018-07-20 08:45:17 +00:00
|
|
|
fd | entr -s make
|
2018-02-11 11:25:15 +00:00
|
|
|
.PHONY: rerun
|