File: Makefile

package info (click to toggle)
python-markdown2 2.3.7-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 1,812 kB
  • sloc: python: 2,788; makefile: 35
file content (40 lines) | stat: -rw-r--r-- 908 bytes parent folder | download
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
34
35
36
37
38
39
40
# python-markdown2 Makefile
SHELL=/bin/bash

.PHONY: all
all:

.PHONY: test
test:
	cd test && python testall.py

.PHONY: testone
testone:
	cd test && python test.py -- -knownfailure

.PHONY: pygments
pygments:
	[[ -d deps/pygments ]] || ( \
		mkdir -p deps && \
		hg clone https://bitbucket.org/birkenfeld/pygments-main deps/pygments)
	(cd deps/pygments && hg pull && hg update)
	# And for Python 3 usage:
	rm -rf deps/pygments3
	mkdir -p deps/pygments3
	cp -PR deps/pygments/pygments deps/pygments3/pygments
	2to3 -w --no-diffs deps/pygments3/pygments

clean:
	rm -rf build dist MANIFEST


.PHONY: versioncheck
versioncheck:
	[[ `grep '^__version_info__' lib/markdown2.py | cut -d'(' -f2 | cut -d')' -f1 | sed 's/, /./g'` \
	    == `grep '^## ' CHANGES.md | head -1 | awk '{print $$3}'` ]]
	@echo Version check ok.

.PHONY: cutarelease
cutarelease: versioncheck
	./tools/cutarelease.py -f lib/markdown2.py