diff options
Diffstat (limited to 'package/pkg-generic.mk')
-rw-r--r-- | package/pkg-generic.mk | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/package/pkg-generic.mk b/package/pkg-generic.mk index c01440e64..8a730c0a0 100644 --- a/package/pkg-generic.mk +++ b/package/pkg-generic.mk @@ -204,6 +204,17 @@ $(2)_BASE_NAME = $(1)-$$($(2)_VERSION) $(2)_DL_DIR = $$(DL_DIR)/$$($(2)_BASE_NAME) $(2)_DIR = $$(BUILD_DIR)/$$($(2)_BASE_NAME) +ifndef $(3)_SUBDIR + ifdef $(2)_SUBDIR + $(3)_SUBDIR = $$($(2)_SUBDIR) + else + $(3)_SUBDIR ?= + endif +endif + +$(2)_SRCDIR = $$($(2)_DIR)/$$($(2)_SUBDIR) +$(2)_BUILDDIR ?= $$($(2)_SRCDIR) + ifneq ($$($(2)_OVERRIDE_SRCDIR),) $(2)_VERSION = custom endif |