2015-03-29 07:29:18 +00:00
|
|
|
#
|
2014-07-02 11:39:28 +00:00
|
|
|
# Copyright (C) 2007-2014 OpenWrt.org
|
2007-09-29 01:21:56 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
ifeq ($(DUMP),)
|
|
|
|
define BuildTarget/bin
|
2010-05-15 15:57:00 +00:00
|
|
|
ifeq ($(if $(VARIANT),$(BUILD_VARIANT)),$(VARIANT))
|
2007-09-29 01:21:56 +00:00
|
|
|
ifdef Package/$(1)/install
|
2014-07-02 11:39:28 +00:00
|
|
|
ifneq ($(CONFIG_PACKAGE_$(1))$(DEVELOPER),)
|
2017-01-19 11:41:59 +00:00
|
|
|
$(_pkg_target)compile: $(PKG_BUILD_DIR)/.pkgdir/$(1).installed
|
2007-09-29 01:21:56 +00:00
|
|
|
compile: install-bin-$(1)
|
|
|
|
else
|
|
|
|
compile: $(1)-disabled
|
|
|
|
$(1)-disabled:
|
2013-02-21 11:45:18 +00:00
|
|
|
@echo "WARNING: skipping $(1) -- package not selected" >&2
|
2007-09-29 01:21:56 +00:00
|
|
|
endif
|
|
|
|
endif
|
2010-05-15 15:57:00 +00:00
|
|
|
endif
|
2007-09-29 01:21:56 +00:00
|
|
|
|
2017-01-18 19:38:36 +00:00
|
|
|
$(PKG_BUILD_DIR)/.pkgdir/$(1).installed: $(STAMP_BUILT)
|
|
|
|
rm -rf $(PKG_BUILD_DIR)/.pkgdir/$(1) $$@
|
|
|
|
mkdir -p $(PKG_BUILD_DIR)/.pkgdir/$(1)
|
|
|
|
$(call Package/$(1)/install,$(PKG_BUILD_DIR)/.pkgdir/$(1))
|
|
|
|
touch $$@
|
|
|
|
|
|
|
|
install-bin-$(1): $(PKG_BUILD_DIR)/.pkgdir/$(1).installed
|
2007-09-29 01:21:56 +00:00
|
|
|
rm -rf $(BIN_DIR)/$(1)
|
2017-01-23 09:49:57 +00:00
|
|
|
$(if $(wildcard $(PKG_BUILD_DIR)/.pkgdir/$(1)/*), \
|
|
|
|
$(INSTALL_DIR) $(BIN_DIR)/$(1) && $(CP) $(PKG_BUILD_DIR)/.pkgdir/$(1)/. $(BIN_DIR)/$(1)/ \
|
|
|
|
)
|
2007-09-29 01:21:56 +00:00
|
|
|
|
|
|
|
clean-$(1):
|
|
|
|
rm -rf $(BIN_DIR)/$(1)
|
|
|
|
|
|
|
|
clean: clean-$(1)
|
|
|
|
.PHONY: install-bin-$(1)
|
|
|
|
endef
|
|
|
|
endif
|