package-debug.mk 568 B

1234567891011121314151617181920212223242526
  1. #
  2. # Copyright (C) 2006,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/debug
  9. DEBUG_STAMP_$(1) := $(DEBUG_DIR)/stamp/$(1)
  10. ifdef Package/$(1)/install
  11. ifneq ($(CONFIG_PACKAGE_$(1))$(SDK)$(DEVELOPER),)
  12. compile: $$(DEBUG_STAMP_$(1))
  13. endif
  14. endif
  15. $$(DEBUG_STAMP_$(1)): $(PKG_BUILD_DIR)/.built
  16. mkdir -p $(DEBUG_DIR)/stamp
  17. $(call Package/$(1)/install,$(DEBUG_DIR))
  18. touch $$(DEBUG_STAMP_$(1))
  19. endef
  20. endif