-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathMakefile
More file actions
33 lines (18 loc) · 691 Bytes
/
Copy pathMakefile
File metadata and controls
33 lines (18 loc) · 691 Bytes
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
# Makefile for MultiMarkdown-CMS based wikis
# Thanks to Dr. Drang for inspiring me to use make:
# http://www.leancrew.com/all-this/2008/06/my-no-server-personal-wiki—part-3/
#
# NOTE: MultiMarkdown 3.0 must be installed for this to work.
#s
srcfiles := $(filter-out cgi/* templates/* css/* images/* robots.txt, $(wildcard *.txt */*.txt */*/*.txt */*/*/*.txt))
htmlfiles := $(patsubst %.txt, %.html, $(srcfiles))
templates := $(wildcard templates/*.html)
all: $(htmlfiles) cgi/vector_index
cgi/vector_index: $(htmlfiles)
cd cgi; ./map_my_site.pl > vector_index
%.html: %.txt # $(templates)
cgi/mmd2web $*.txt
chmod 755 $*.html
clean:
rm $(htmlfiles)
fast: $(htmlfiles)