aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: f494fc0bbe0b20a81fbf82699117fb58e42e49e4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
.POSIX:
NAME = servers
LIST = ~euandreh/public-inbox@lists.sr.ht
TLD  = euandre.org




.SUFFIXES:
.SUFFIXES: .in

.in:
	sed \
		-e 's:@PROJECT_UC@:$(NAME):g'   \
		-e 's:@PROJECT@:$(NAME):g'      \
		-e 's:@MAILING_LIST@:$(LIST):g' \
		-e 's:@TLD@:$(TLD):g'           \
		< $< > $@
	if [ -x $< ]; then chmod +x $@; fi



all: public


check:

clean:
	rm -rf \
		.sentinel/ public/

dev-check: check public

HOST = toph
deploy:
	scp \
		src/infrastructure/guix/channels.scm \
		src/infrastructure/guix/system.scm   \
		$(HOST):/etc/guix/
	ssh $(HOST) r reconfigure $(OPTS)


.sentinel/mkdir-public:
	mkdir -p public .sentinel
	touch $@

public/favicon.svg: .sentinel/mkdir-public aux/workflow/favicon.svg
	cp aux/workflow/favicon.svg $@

public/style.css: .sentinel/mkdir-public
	td -S > $@

public/TODOs.html: .sentinel/mkdir-public aux/workflow/preamble.md TODOs.md
	td -H | cat aux/workflow/preamble.md - | \
		sh aux/workflow/md2html.sh -N $(NAME) -T TODOs > $@

public/ci:
	sh aux/ci/report.sh -o $@ -n $(NAME)

public: public/favicon.svg public/style.css public/TODOs.html public/ci