X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/f08be3e501d20838b7467f26a86dfc40ee9efcae..063464b69bcfe885d02191e11d98145c69d0062f:/package/Makefile diff --git a/package/Makefile b/package/Makefile index aa059a7d2..e618a90b6 100644 --- a/package/Makefile +++ b/package/Makefile @@ -10,9 +10,13 @@ curdir:=package -include $(TMP_DIR)/.packagedeps $(curdir)/builddirs:=$(sort $(package-) $(package-y) $(package-m)) -$(curdir)/builddirs-default:=. $(sort $(package-y) $(package-m)) -$(curdir)/builddirs-prereq:=. $(sort $(prereq-y) $(prereq-m)) -$(curdir)/builddirs-install:=. $(sort $(package-y)) +ifeq ($(SDK),1) + $(curdir)/builddirs-install:=. +else + $(curdir)/builddirs-default:=. $(sort $(package-y) $(package-m)) + $(curdir)/builddirs-prereq:=. $(sort $(prereq-y) $(prereq-m)) + $(curdir)/builddirs-install:=. $(sort $(package-y)) +endif $(curdir)/install:=$(curdir)/install-cleanup @@ -35,6 +39,7 @@ $(curdir)/rootfs-prepare: $(TMP_DIR)/.build @-find $(TARGET_DIR) -name CVS | $(XARGS) rm -rf @-find $(TARGET_DIR) -name .svn | $(XARGS) rm -rf @-find $(TARGET_DIR) -name '.#*' | $(XARGS) rm -f + $(if $(CONFIG_CLEAN_IPKG),rm -rf $(TARGET_DIR)/usr/lib/ipkg) $(curdir)/index: FORCE @(cd $(PACKAGE_DIR); $(SCRIPT_DIR)/ipkg-make-index.sh . > Packages)