2011-11-06 04:32:25 -08:00
|
|
|
#
|
2012-05-21 04:12:37 -07:00
|
|
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
2011-11-06 04:32:25 -08:00
|
|
|
|
2012-08-04 11:26:44 -07:00
|
|
|
DEPTH = @DEPTH@
|
2011-11-06 04:32:25 -08:00
|
|
|
topsrcdir = @top_srcdir@
|
|
|
|
srcdir = @srcdir@
|
|
|
|
VPATH = @srcdir@
|
|
|
|
|
|
|
|
include $(DEPTH)/config/autoconf.mk
|
|
|
|
|
|
|
|
PARSER_SRCS = \
|
|
|
|
header.py \
|
|
|
|
typelib.py \
|
|
|
|
xpidl.py \
|
|
|
|
$(NULL)
|
|
|
|
|
2012-02-23 02:00:18 -08:00
|
|
|
ifndef MOZ_SYSTEM_PLY
|
2011-11-06 04:32:25 -08:00
|
|
|
PLY_PROGS = \
|
|
|
|
$(topsrcdir)/other-licenses/ply/ply/lex.py \
|
|
|
|
$(topsrcdir)/other-licenses/ply/ply/yacc.py \
|
|
|
|
$(NULL)
|
2012-02-23 02:00:18 -08:00
|
|
|
endif
|
2011-11-06 04:32:25 -08:00
|
|
|
|
|
|
|
include $(topsrcdir)/config/rules.mk
|
|
|
|
|
|
|
|
# Generate the PLY lexer and parser.
|
|
|
|
export:: $(PARSER_SRCS) $(PLY_PROGS)
|
|
|
|
$(PYTHON_PATH) \
|
2012-04-06 11:06:52 -07:00
|
|
|
$(PLY_INCLUDE) \
|
2012-05-14 08:19:39 -07:00
|
|
|
$(srcdir)/header.py --cachedir=. --regen
|
2011-11-06 04:32:25 -08:00
|
|
|
|
|
|
|
check::
|
|
|
|
$(PYTHON_PATH) \
|
2012-04-06 11:06:52 -07:00
|
|
|
$(PLY_INCLUDE) \
|
2012-05-14 08:19:39 -07:00
|
|
|
-I. \
|
|
|
|
$(srcdir)/runtests.py
|
2011-11-06 04:32:25 -08:00
|
|
|
|
|
|
|
GARBAGE += \
|
|
|
|
xpidllex.py \
|
|
|
|
xpidllex.pyc \
|
|
|
|
xpidlyacc.py \
|
|
|
|
xpidlyacc.pyc \
|
|
|
|
xpidl_debug \
|
|
|
|
$(NULL)
|