gecko-dev/toolkit/devtools/gcli/Makefile.in
Mike Hommey 66233dd7ac Bug 1011816 - Avoid install targets race condition in toolkit/devtools/gcli. r=mshal
While at it, convert the libs:: rule to install targets
2014-05-20 08:47:59 +09:00

36 lines
1.1 KiB
Makefile

# 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/.
gcli_commands_internal_FILES = $(wildcard $(srcdir)/commands/*)
gcli_commands_internal_DEST = $(FINAL_TARGET)/modules/devtools/gcli/commands
INSTALL_TARGETS += gcli_commands_internal
subdirs = \
commands \
connectors \
converters \
fields \
languages \
mozui \
types \
ui \
util \
$(NULL)
define subdir_files
gcli_$1_FILES = $$(wildcard $$(srcdir)/source/lib/gcli/$1/*)
gcli_$1_DEST = $$(FINAL_TARGET)/modules/devtools/gcli/$1
INSTALL_TARGETS += gcli_$1
endef
$(foreach subdir,$(subdirs),$(eval $(call subdir_files,$(subdir))))
gcli_root_FILES = $(filter-out $(addprefix $(srcdir)/source/lib/gcli/,$(subdirs)),$(wildcard $(srcdir)/source/lib/gcli/*))
gcli_root_DEST = $(FINAL_TARGET)/modules/devtools/gcli
INSTALL_TARGETS += gcli_root
gcli_jsm_FILES = $(wildcard $(srcdir)/*.jsm)
gcli_jsm_DEST = $(FINAL_TARGET)/modules/devtools
INSTALL_TARGETS += gcli_jsm