2
# vim:set ts=8 sw=8 sts=8 noet:
4
# This Source Code Form is subject to the terms of the Mozilla Public
5
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
6
# You can obtain one at http://mozilla.org/MPL/2.0/.
9
# Always declared, general use by:
10
# js/xpconnect/tests/idl/Makefile.in:libs
11
# toolkit/crashreporter/test/Makefile.in
12
XPIDL_GEN_DIR ?= _xpidlgen
13
GARBAGE_DIRS += $(XPIDL_GEN_DIR)
16
###########################################################################
18
###########################################################################
19
ifndef INCLUDED_XPIDL_MK #{
22
ifneq (,$(XPIDLSRCS)) #{
24
ifndef NO_DIST_INSTALL #{
25
_xpidl-todo_ += xpidl-install-src
26
_xpidl-todo_ += xpidl-install-headers
31
export:: $(_xpidl-todo_)
33
$(call requiredfunction,mkdir_deps)
34
endif #} INCLUDED_XPIDL_MK
37
###########################################################################
39
###########################################################################
42
$(call requiredfunction,install_cmd)
45
xpidl-install-src-preqs=\
47
$(call mkdir_deps,$(IDL_DIR)) \
50
xpidl-install-src: $(xpidl-install-src-preqs)
51
$(call install_cmd,$(IFLAGS1) $(foreach val,$^,$(call mkdir_stem,$(val))))
53
xpidl-install-headers-preqs =\
54
$(patsubst %.idl,$(XPIDL_GEN_DIR)/%.h, $(XPIDLSRCS)) \
55
$(call mkdir_deps,$(DIST)/include) \
57
xpidl-install-headers: $(xpidl-install-headers-preqs)
58
$(call install_cmd,$(IFLAGS1) $(foreach val,$^,$(call mkdir_stem,$(val))))