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

.SUFFIXES:
.SUFFIXES: .md .env .html

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

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


include generated.mk


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

all: $(pastebins.env) $(pastebins.html) $(torrent-files)

$(torrent-files):
	mktorrent -f -v -d -n $@ -o $@ -c '' "$(@D)/`basename $@ .torrent`"