-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
34 lines (28 loc) · 820 Bytes
/
Makefile
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
.PHONY: all clean rebuild
FILES=$(wildcard src/*.md)
BUILDER=java -jar ~/bin/emem.jar
OG_TITLE="$$(head -1 $<)"
OG_TYPE="article"
OG_IMAGE="https://avatars0.githubusercontent.com/u/29517051"
ANALYTICS="121960562-1"
%.html: src/%.md
$(BUILDER) \
--og-title $(OG_TITLE) --og-type $(OG_TYPE) \
-D $(OG_TITLE) \
-K "zhaqenl, raymund, martinez, raymund martinez" \
--og-url "https://zhaqenl.github.io/$$(basename $< .md).html" \
--og-image $(OG_IMAGE) \
--analytics $(ANALYTICS) \
-RFiamuo "$$(basename $< .md).html" \
$<
all:
$(BUILDER) -r
$(MAKE) $(MFLAGS) -C en
parallel --will-cite "$(MAKE) {/.}.html" ::: $(FILES)
clean:
find . -maxdepth 1 -name '*.html' ! -name 'sitemap.html' ! -name 'index.html' -exec rm -vf {} \;
rm -rvf static
$(MAKE) -C en $@
rebuild:
$(MAKE) clean
$(MAKE)