aboutsummaryrefslogtreecommitdiff
path: root/dynamic.mk
blob: c02d934c31f663ab08867165cbe60fc274535c6f (about) (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
.POSIX:

.SUFFIXES: .md .env .html

.md.env:
	sh src/development/frontmatter-env.sh < $< > $@

.md.html:
	sh src/development/genhtml.sh $< > $@

include files.mk
include deps.mk

torrents: $(torrent-files)

$(torrent-files): files.mk deps.mk
	mktorrent -f -v -d -n $@ -o $@ -c '' "$$(echo $@ | sed 's/\.torrent$$//')"


include generated.mk

pastebins.env = $(pastebins.md:.md=.env)
pastebins.html = $(pastebins.md:.md=.html)

all: $(pastebins.env) $(pastebins.html)