-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
45 lines (32 loc) · 1.08 KB
/
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
35
36
37
38
39
40
41
42
43
44
45
MDFLAGS =\
--section-div
MD = $(wildcard *.md)
CSS = $(wildcard *.css)
HTML = $(patsubst %.md,%.html,$(MD))
#===============================================================================
# convenience items for testing and what not:
.PHONY: all clean publish
all: $(HTML) me.jpg
clean:
rm -f $(HTML) me.jpg
publish: \
dumboRat-NewbieFAQ\
index.html\
index.css\
resume.css\
resume.html\
me.jpg
rsync -r -l --delete-excluded $(foreach file,$^,--include="/$(file)")\
--exclude '/*' ./ mechbits.com:/var/www/mechbits
#===============================================================================
# recipes:
index.html resume.html: MDFLAGS += --css $*.css
README.html: MDFLAGS += --from markdown_github --css github-pandoc.css
me.jpg: questionmark2.jpg
convert $< -resize 250x250 $@
#-------------------------------------------------------------------------------
# generic recipes:
# make foo.html from template.html, foo.md, and any other markdown files
%.html: template.html %.md
pandoc $(MDFLAGS) --template=template.html -s -o $@ $(filter %.md,$^)
# vim: set noexpandtab :