1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/xpcom/idl-parser/Makefile.in Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,55 @@ 1.4 +# 1.5 +# This Source Code Form is subject to the terms of the Mozilla Public 1.6 +# License, v. 2.0. If a copy of the MPL was not distributed with this 1.7 +# file, You can obtain one at http://mozilla.org/MPL/2.0/. 1.8 + 1.9 +PARSER_SRCS = \ 1.10 + header.py \ 1.11 + typelib.py \ 1.12 + xpidl.py \ 1.13 + $(NULL) 1.14 + 1.15 +SDK_BINARY = \ 1.16 + $(PARSER_SRCS) \ 1.17 + $(IDL_PARSER_CACHE_DIR)/xpidllex.py \ 1.18 + $(IDL_PARSER_CACHE_DIR)/xpidlyacc.py \ 1.19 + $(NULL) 1.20 + 1.21 +SDK_BINARY_TARGET = xpidl-parser 1.22 + 1.23 +PLY_FILES = \ 1.24 + $(topsrcdir)/other-licenses/ply/ply/__init__.py \ 1.25 + $(topsrcdir)/other-licenses/ply/ply/lex.py \ 1.26 + $(topsrcdir)/other-licenses/ply/ply/yacc.py \ 1.27 + $(NULL) 1.28 + 1.29 +PLY_DEST = $(SDK_BIN_DIR)/ply 1.30 +INSTALL_TARGETS += PLY 1.31 +PLY_TARGET = xpidl-parser 1.32 + 1.33 +include $(topsrcdir)/config/rules.mk 1.34 + 1.35 +# Generate the PLY lexer and parser. 1.36 +$(IDL_PARSER_CACHE_DIR)/xpidllex.py: $(PARSER_SRCS) $(PLY_FILES) 1.37 + $(PYTHON_PATH) \ 1.38 + $(PLY_INCLUDE) \ 1.39 + $(srcdir)/header.py --cachedir=$(IDL_PARSER_CACHE_DIR) --regen 1.40 + 1.41 +# generating xpidllex.py generates xpidlyacc.py too 1.42 +$(IDL_PARSER_CACHE_DIR)/xpidlyacc.py: $(IDL_PARSER_CACHE_DIR)/xpidllex.py 1.43 + 1.44 +check:: 1.45 + $(PYTHON_PATH) \ 1.46 + $(PLY_INCLUDE) \ 1.47 + -I. \ 1.48 + $(srcdir)/runtests.py 1.49 + 1.50 +garbage_files := \ 1.51 + xpidllex.py \ 1.52 + xpidllex.pyc \ 1.53 + xpidlyacc.py \ 1.54 + xpidlyacc.pyc \ 1.55 + xpidl_debug \ 1.56 + $(NULL) 1.57 + 1.58 +GARBAGE += $(addprefix $(IDL_PARSER_CACHE_DIR)/,$(garbage_files))