-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathMakefile
52 lines (36 loc) · 1.03 KB
/
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# Copyright 2008-2013 semantics GmbH
# Written by Christian Heimes <[email protected]>
# Modified by Marcus Brinkmann <[email protected]>
PYTHON=python2.7
SETUPFLAGS=
COMPILEFLAGS=
.PHONY: inplace all rebuild test_inplace test clean realclean egg_info egg
.PHONY: develop sdist update-parser
inplace:
$(PYTHON) setup.py $(SETUPFLAGS) build_ext -i $(COMPILEFLAGS)
all: inplace
rebuild: clean all
test_inplace: inplace
$(PYTHON) -m smc.mw.tests
test: test_inplace
clean:
find . \( -name '*~' -or -name '*.o' -or -name '*.so' -or -name '*.py[cod]' \) -delete
realclean: clean
$(PYTHON) setup.py clean -a
rm -rf build
rm -rf dist
rm -f TAGS tags
rm -rf smc.mw.egg-info
egg_info:
rm -rf smc.mw.egg-info
$(PYTHON) setup.py egg_info
egg: egg_info inplace
$(PYTHON) setup.py bdist_egg
develop: egg_info inplace
$(PYTHON) setup.py develop
sdist: egg_info
$(PYTHON) setup.py sdist
.SUFFIXES: .ebnf .py
.ebnf.py:
grako --whitespace="" --no-nameguard -o $@ $<
update-parser: smc/mw/mw.py smc/mw/mw_pre.py tests/testspec.py