Makefile 553 Bytes
Newer Older
Tobias Rautenkranz's avatar
Tobias Rautenkranz committed
1
2
3
changelog := _includes/changelog.html.fragment

all: $(changelog)
Tobias Rautenkranz's avatar
Tobias Rautenkranz committed
4
	jekyll build -q
Tobias Rautenkranz's avatar
Tobias Rautenkranz committed
5
	rm _site/Makefile # FIXME exclude in jekyll not working
Tobias Rautenkranz's avatar
Tobias Rautenkranz committed
6
7
8
9
10
11
12

serve:
	jekyll serve -B -D > /dev/null 2>&1

kill:
	killall jekyll

Tobias Rautenkranz's avatar
Tobias Rautenkranz committed
13
14
15
serve-fg:
	jekyll serve -D

16
17
REPO := https://gitlab.com/tobiasrautenkranz/site/commit/

Tobias Rautenkranz's avatar
Tobias Rautenkranz committed
18
19
20
.PHONY: $(changelog)
$(changelog):
	@echo "<dl>" > $@
21
	@git log --pretty=format:'<dt>%n<a href="$(REPO)%H">%ai</a>%n</dt><dd>%s</dd>%n' >> $@
Tobias Rautenkranz's avatar
Tobias Rautenkranz committed
22
23
	@echo "</dl>" >> $@

Tobias Rautenkranz's avatar
Tobias Rautenkranz committed
24
25
26
.PHONY: clean
clean:
	rm -f $(changelog)
Tobias Rautenkranz's avatar
Tobias Rautenkranz committed
27

28
.PHONY: dist-clean
Tobias Rautenkranz's avatar
Tobias Rautenkranz committed
29
dist-clean: clean
Tobias Rautenkranz's avatar
Tobias Rautenkranz committed
30
	jekyll clean