Skip to content
Newer
Older
100644 41 lines (31 sloc) 908 Bytes
4eb6705 @trentm all is phony
authored
1 # python-markdown2 Makefile
c9d8b03 @cdman Make makefile compatible with Ubuntu which uses sh as the default shell
cdman authored
2 SHELL=/bin/bash
4eb6705 @trentm all is phony
authored
3
4 .PHONY: all
f0bf3c8 @trentm Drop "Makefile.py" (a `mk` thing) and simplify to "Makefile".
authored
5 all:
6
7 .PHONY: test
8 test:
9 cd test && python testall.py
10
ec73ee7 @trentm 'make testone' and travis-ci.org integration
authored
11 .PHONY: testone
12 testone:
13 cd test && python test.py -- -knownfailure
14
f0bf3c8 @trentm Drop "Makefile.py" (a `mk` thing) and simplify to "Makefile".
authored
15 .PHONY: pygments
16 pygments:
17d8f25 @trentm fenced-code-blocks extra a la GFM
authored
17 [[ -d deps/pygments ]] || ( \
18 mkdir -p deps && \
19 hg clone https://bitbucket.org/birkenfeld/pygments-main deps/pygments)
9a452be @trentm s/externals/deps/
authored
20 (cd deps/pygments && hg pull && hg update)
08522fd @trentm [issue #64] Python 3 support!
authored
21 # And for Python 3 usage:
22 rm -rf deps/pygments3
23 mkdir -p deps/pygments3
24 cp -PR deps/pygments/pygments deps/pygments3/pygments
25 2to3 -w --no-diffs deps/pygments3/pygments
f0bf3c8 @trentm Drop "Makefile.py" (a `mk` thing) and simplify to "Makefile".
authored
26
27 clean:
28 rm -rf build dist MANIFEST
29
5dcad70 @trentm bump ver to 2.2.0, add 'make versioncheck' to ensure versions in sync
authored
30
31 .PHONY: versioncheck
32 versioncheck:
33 [[ `grep '^__version_info__' lib/markdown2.py | cut -d'(' -f2 | cut -d')' -f1 | sed 's/, /./g'` \
34 == `grep '^## ' CHANGES.md | head -1 | awk '{print $$3}'` ]]
35 @echo Version check ok.
36
f0bf3c8 @trentm Drop "Makefile.py" (a `mk` thing) and simplify to "Makefile".
authored
37 .PHONY: cutarelease
5dcad70 @trentm bump ver to 2.2.0, add 'make versioncheck' to ensure versions in sync
authored
38 cutarelease: versioncheck
f0bf3c8 @trentm Drop "Makefile.py" (a `mk` thing) and simplify to "Makefile".
authored
39 ./tools/cutarelease.py -f lib/markdown2.py
5dcad70 @trentm bump ver to 2.2.0, add 'make versioncheck' to ensure versions in sync
authored
40
Something went wrong with that request. Please try again.