fixed package for naming convention

This commit is contained in:
Norbert Thiebaud 2010-12-20 09:11:09 -06:00
parent ad94d81dfe
commit 960013b01f

View file

@ -50,7 +50,7 @@ $(call gb_Package_get_target,%) :
mkdir -p $(dir $@) && touch $@
define gb_Package_Package
gb_TARGET_PACKAGE_$(1)_SOURCEDIR := $(2)
gb_Package_SOURCEDIR_$(1) := $(2)
$(call gb_Package_get_clean_target,$(1)) : FILES := $(call gb_Package_get_target,$(1))
$$(eval $$(call gb_Module_register_target,$(call gb_Package_get_target,$(1)),$(call gb_Package_get_clean_target,$(1))))
@ -59,8 +59,8 @@ endef
define gb_Package_add_file
$(call gb_Package_get_target,$(1)) : $(OUTDIR)/$(2)
$(call gb_Package_get_clean_target,$(1)) : FILES += $(OUTDIR)/$(2)
$(call gb_PackagePart_PackagePart,$(2),$$(gb_TARGET_PACKAGE_$(1)_SOURCEDIR)/$(3))
$(OUTDIR)/$(2) : $$(gb_TARGET_PACKAGE_$(1)_SOURCEDIR)/$(3)
$(call gb_PackagePart_PackagePart,$(2),$$(gb_Package_SOURCEDIR_$(1))/$(3))
$(OUTDIR)/$(2) : $$(gb_Package_SOURCEDIR_$(1))/$(3)
endef
# vim: set noet sw=4 ts=4: