xpcom/idl-parser/Makefile.in

branch
TOR_BUG_9701
changeset 15
b8a032363ba2
equal deleted inserted replaced
-1:000000000000 0:2329b2d48d42
1 #
2 # This Source Code Form is subject to the terms of the Mozilla Public
3 # License, v. 2.0. If a copy of the MPL was not distributed with this
4 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
5
6 PARSER_SRCS = \
7 header.py \
8 typelib.py \
9 xpidl.py \
10 $(NULL)
11
12 SDK_BINARY = \
13 $(PARSER_SRCS) \
14 $(IDL_PARSER_CACHE_DIR)/xpidllex.py \
15 $(IDL_PARSER_CACHE_DIR)/xpidlyacc.py \
16 $(NULL)
17
18 SDK_BINARY_TARGET = xpidl-parser
19
20 PLY_FILES = \
21 $(topsrcdir)/other-licenses/ply/ply/__init__.py \
22 $(topsrcdir)/other-licenses/ply/ply/lex.py \
23 $(topsrcdir)/other-licenses/ply/ply/yacc.py \
24 $(NULL)
25
26 PLY_DEST = $(SDK_BIN_DIR)/ply
27 INSTALL_TARGETS += PLY
28 PLY_TARGET = xpidl-parser
29
30 include $(topsrcdir)/config/rules.mk
31
32 # Generate the PLY lexer and parser.
33 $(IDL_PARSER_CACHE_DIR)/xpidllex.py: $(PARSER_SRCS) $(PLY_FILES)
34 $(PYTHON_PATH) \
35 $(PLY_INCLUDE) \
36 $(srcdir)/header.py --cachedir=$(IDL_PARSER_CACHE_DIR) --regen
37
38 # generating xpidllex.py generates xpidlyacc.py too
39 $(IDL_PARSER_CACHE_DIR)/xpidlyacc.py: $(IDL_PARSER_CACHE_DIR)/xpidllex.py
40
41 check::
42 $(PYTHON_PATH) \
43 $(PLY_INCLUDE) \
44 -I. \
45 $(srcdir)/runtests.py
46
47 garbage_files := \
48 xpidllex.py \
49 xpidllex.pyc \
50 xpidlyacc.py \
51 xpidlyacc.pyc \
52 xpidl_debug \
53 $(NULL)
54
55 GARBAGE += $(addprefix $(IDL_PARSER_CACHE_DIR)/,$(garbage_files))

mercurial