sdk: do not exclude all doc directories
authorMichael Pratt <mcpratt@pm.me>
Sun, 7 May 2023 23:33:40 +0000 (19:33 -0400)
committerChristian Marangi <ansuelsmth@gmail.com>
Mon, 8 May 2023 22:52:31 +0000 (00:52 +0200)
Some packages which are using local gnulib source
are expecting files to exist in the directory:

staging_dir/host/share/gnulib/doc

so delete the other doc directories directly
instead of excluding all of them.

Fixes: d167adbc4 ("gettext-full: bootstrap to local gnulib source")
Signed-off-by: Michael Pratt <mcpratt@pm.me>
target/sdk/Makefile

index d9f67dae9ef03774212bda06002e763aa6857f5f..b688eb4cba02398857327aab250717aa19b4b782 100644 (file)
@@ -32,7 +32,6 @@ EXCLUDE_DIRS:= \
        *.install.clean \
        *.install.flags \
        *.install \
-       */doc \
        */share/locale
 
 SDK_DIRS = \
@@ -158,6 +157,8 @@ $(BIN_DIR)/$(SDK_NAME).tar.xz: clean
                $(SDK_BUILD_DIR)/package/kernel/
 
        -rm -rf $(SDK_BUILD_DIR)/$(STAGING_SUBDIR_HOST)/.prereq-build
+       -rm -rf $(SDK_BUILD_DIR)/$(STAGING_SUBDIR_HOST)/doc
+       -rm -rf $(SDK_BUILD_DIR)/$(STAGING_SUBDIR_HOST)/share/doc
 
        -rm -f $(SDK_BUILD_DIR)/feeds.conf.default
        $(if $(BASE_FEED),echo "$(BASE_FEED)" > $(SDK_BUILD_DIR)/feeds.conf.default)