package-bin.mk 782 B

12345678910111213141516171819202122232425262728293031323334
  1. #
  2. # Copyright (C) 2007-2014 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. ifeq ($(DUMP),)
  8. define BuildTarget/bin
  9. ifeq ($(if $(VARIANT),$(BUILD_VARIANT)),$(VARIANT))
  10. ifdef Package/$(1)/install
  11. ifneq ($(CONFIG_PACKAGE_$(1))$(DEVELOPER),)
  12. compile: install-bin-$(1)
  13. else
  14. compile: $(1)-disabled
  15. $(1)-disabled:
  16. @echo "WARNING: skipping $(1) -- package not selected" >&2
  17. endif
  18. endif
  19. endif
  20. install-bin-$(1): $(STAMP_BUILT)
  21. rm -rf $(BIN_DIR)/$(1)
  22. $(INSTALL_DIR) $(BIN_DIR)/$(1)
  23. $(call Package/$(1)/install,$(BIN_DIR)/$(1))
  24. clean-$(1):
  25. rm -rf $(BIN_DIR)/$(1)
  26. clean: clean-$(1)
  27. .PHONY: install-bin-$(1)
  28. endef
  29. endif