aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: d81f82d46f5616e9017e258b90b2e244f81811bd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
MAKEFLAGS += -j2

dev: server watch

watch:
	find content/* templates/* static/* | entr make generate

server:
	browser-sync start --server ./public --watch --no-open --no-notify

clean:
	rm -rf public/*

generate:
	staticgen --generate

deploy: clean generate copy-weekly-links
	firebase deploy

copy-weekly-links:
	mkdir -p public/weekly-links-archive
	cp -rf emailing/generated/* public/weekly-links-archive/