-
Notifications
You must be signed in to change notification settings - Fork 13
/
Makefile
26 lines (21 loc) · 857 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
toc := $(shell <html/index.html perl -ne '/<li>.+href="(.+\.html)"/ && print "html/$$1\n"')
.PHONY: all-about-monads.mediawiki
all-about-monads.mediawiki: ${toc}
pandoc -f html -t native ${toc} \
| runhaskell transform.hs \
| pandoc -f native -t mediawiki -o $@ \
-B before.mediawiki -A after.mediawiki
cabal-dev-all-about-monads.mediawiki: ${toc}
cabal-dev/bin/pandoc -f html -t native ${toc} \
| cabal-dev/bin/all-about-monads \
| cabal-dev/bin/pandoc -f native -t mediawiki -o $@ \
-B before.mediawiki -A after.mediawiki
cabal-all-about-monads.mediawiki: ${toc}
pandoc -f html -t native ${toc} \
| dist/build/all-about-monads/all-about-monads \
| pandoc -f native -t mediawiki -o $@ \
-B before.mediawiki -A after.mediawiki
cabal-dev-all-about-monads:
cabal-dev install
cabal-all-about-monads:
cabal install