Skip to content
This repository
Newer
Older
100644 34 lines (18 sloc) 0.691 kb
10d4fbfb »
2010-02-26 add makefile feature for easy (re)building of a mmd-cms site
1 # Makefile for MultiMarkdown-CMS based wikis
5f919569 »
2010-02-26 clarification
2 # Thanks to Dr. Drang for inspiring me to use make:
10d4fbfb »
2010-02-26 add makefile feature for easy (re)building of a mmd-cms site
3 # http://www.leancrew.com/all-this/2008/06/my-no-server-personal-wiki—part-3/
4
e227bcda »
2010-02-27 cleanup
5
10d4fbfb »
2010-02-26 add makefile feature for easy (re)building of a mmd-cms site
6 #
ed3528ce »
2011-03-24 Update to MMD 3.0 support
7 # NOTE: MultiMarkdown 3.0 must be installed for this to work.
8 #s
10d4fbfb »
2010-02-26 add makefile feature for easy (re)building of a mmd-cms site
9
10 srcfiles := $(filter-out cgi/* templates/* css/* images/* robots.txt, $(wildcard *.txt */*.txt */*/*.txt */*/*/*.txt))
e227bcda »
2010-02-27 cleanup
11
10d4fbfb »
2010-02-26 add makefile feature for easy (re)building of a mmd-cms site
12 htmlfiles := $(patsubst %.txt, %.html, $(srcfiles))
e227bcda »
2010-02-27 cleanup
13
10d4fbfb »
2010-02-26 add makefile feature for easy (re)building of a mmd-cms site
14 templates := $(wildcard templates/*.html)
15
e227bcda »
2010-02-27 cleanup
16
10d4fbfb »
2010-02-26 add makefile feature for easy (re)building of a mmd-cms site
17 all: $(htmlfiles) cgi/vector_index
18
e227bcda »
2010-02-27 cleanup
19
10d4fbfb »
2010-02-26 add makefile feature for easy (re)building of a mmd-cms site
20 cgi/vector_index: $(htmlfiles)
21 cd cgi; ./map_my_site.pl > vector_index
22
23
00b3f4f2 »
2010-03-22 no need to rebuild for template change
24 %.html: %.txt # $(templates)
4c90f2c4 »
2011-03-24 fix makefile bug
25 cgi/mmd2web $*.txt
f186ae37 »
2010-02-27 tidy
26 chmod 755 $*.html
10d4fbfb »
2010-02-26 add makefile feature for easy (re)building of a mmd-cms site
27
e227bcda »
2010-02-27 cleanup
28
10d4fbfb »
2010-02-26 add makefile feature for easy (re)building of a mmd-cms site
29 clean:
477227a8 »
2010-02-26 add fast option for make that doesn't regenerate vector map index
30 rm $(htmlfiles)
31
e227bcda »
2010-02-27 cleanup
32
477227a8 »
2010-02-26 add fast option for make that doesn't regenerate vector map index
33 fast: $(htmlfiles)
Something went wrong with that request. Please try again.