aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: 5c72514a966515c0fbd91e1c019dfc633e829acf (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
61
62
63
.POSIX:
NAME      = servers
LIST_NAME = public-inbox
LIST      = ~euandreh/$(LIST_NAME)@lists.sr.ht
SEARCH    = https://lists.sr.ht/~euandreh/$(LIST_NAME)?search=%5B$(NAME)%5D
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|@LIST_SEARCH@|$(SEARCH)|g' \
		-e 's|@TLD@|$(TLD)|g'            \
		< $< > $@
	if [ -x $< ]; then chmod +x $@; fi



all: public


check:

clean:
	rm -rf \
		.sentinel/ public/ aux/workflow/preamble.md

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