package-bin.mk 714 B

12345678910111213141516171819202122232425262728293031
  1. #
  2. # Copyright (C) 2007 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. ifdef Package/$(1)/install
  10. ifneq ($(CONFIG_PACKAGE_$(1))$(SDK)$(DEVELOPER),)
  11. compile: install-bin-$(1)
  12. else
  13. compile: $(1)-disabled
  14. $(1)-disabled:
  15. @echo "WARNING: skipping $(1) -- package not selected"
  16. endif
  17. endif
  18. install-bin-$(1): $(STAMP_BUILT)
  19. rm -rf $(BIN_DIR)/$(1)
  20. $(INSTALL_DIR) $(BIN_DIR)/$(1)
  21. $(call Package/$(1)/install,$(BIN_DIR)/$(1))
  22. clean-$(1):
  23. rm -rf $(BIN_DIR)/$(1)
  24. clean: clean-$(1)
  25. .PHONY: install-bin-$(1)
  26. endef
  27. endif