aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: b2cd19bd9ce7d2dba5c9109e2bfff36c039f9a4b (plain)
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
#
# Split out pages from the FAQ nursery ready to copy to wordpress
#

MD = $(wildcard *.md)
HTML = $(MD:%.md=%.html)
WP = $(HTML:%.html=%.wp)

all : 96boards-wiki
	cd 96boards-wiki && git pull
	python split-topics.py 96boards-wiki/The-FAQ-nursery.md
	$(MAKE) _all

# We need to do a double level make to ensure the wildcards get
# re-evaluated after we split out the topics from the wiki.
_all : $(WP)

96boards-wiki :
	git clone https://github.com/96boards/documentation.wiki 96boards-wiki

clean :
	$(RM) $(MD) $(HTML)

%.html : %.md
	cmark $< > $@

%.wp : %.html
	python wordpressify.py $< > $@