pkg-infra: fix missing 3993 for AUTOTARGET's SUBDIR
authorArnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Sat, 21 Jan 2012 21:52:39 +0000 (22:52 +0100)
committerPeter Korsgaard <jacmet@sunsite.dk>
Sun, 22 Jan 2012 22:18:25 +0000 (23:18 +0100)
Ensure <pkg>_SUBDIR gets resolved late, so that E.G. the default values
for host packages are taken into consideration.

Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
package/Makefile.autotools.in

index 0f9b2c60f4c46059c600d87a371f802939cae84e..64e0730b8a00e83d69066f7e3e6436452bde437d 100644 (file)
@@ -93,7 +93,7 @@ $(2)_CLEAN_OPT                        ?= clean
 $(2)_UNINSTALL_STAGING_OPT     ?= DESTDIR=$$(STAGING_DIR) uninstall
 $(2)_UNINSTALL_TARGET_OPT      ?= DESTDIR=$$(TARGET_DIR)  uninstall
 
-$(2)_SRCDIR                     = $$($(2)_DIR)/$($(2)_SUBDIR)
+$(2)_SRCDIR                     = $$($(2)_DIR)/$$($(2)_SUBDIR)
 
 #
 # Configure step. Only define it if not already defined by the package