diff mbox series

[Mantic,5/6] UBUNTU: [Packaging] remove hmake

Message ID 20230728133817.893883-5-masahiro.yamada@canonical.com
State New
Headers show
Series [Mantic,1/6] UBUNTU: [Packaging] Add .NOTPARALLEL | expand

Commit Message

Masahiro Yamada July 28, 2023, 1:38 p.m. UTC
There is no good reason to use a different variable only for
'make headers_install'.

Just use $(kmake) like the other targets.

Signed-off-by: Masahiro Yamada <masahiro.yamada@canonical.com>
---
 debian/rules.d/2-binary-arch.mk | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)
diff mbox series

Patch

diff --git a/debian/rules.d/2-binary-arch.mk b/debian/rules.d/2-binary-arch.mk
index 7af0287b6535..4242875fe71b 100644
--- a/debian/rules.d/2-binary-arch.mk
+++ b/debian/rules.d/2-binary-arch.mk
@@ -549,10 +549,6 @@  endif
 headers_tmp := $(CURDIR)/debian/tmp-headers
 headers_dir := $(CURDIR)/debian/linux-libc-dev
 
-hmake := $(MAKE) -C $(CURDIR) O=$(headers_tmp) \
-	INSTALL_HDR_PATH=$(headers_tmp)/install \
-	SHELL="$(SHELL)" ARCH=$(build_arch)
-
 .PHONY: install-arch-headers
 install-arch-headers:
 	@echo Debug: $@
@@ -563,7 +559,7 @@  ifeq ($(do_libc_dev_package),true)
 endif
 	rm -rf $(headers_tmp) $(headers_dir)
 	install -d $(headers_tmp) $(headers_dir)/usr/include/
-	$(hmake) $(conc_level) headers_install
+	$(kmake) O=$(headers_tmp) INSTALL_HDR_PATH=$(headers_tmp)/install $(conc_level) headers_install
 	( cd $(headers_tmp)/install/include/ && \
 		find . -name '.' -o -name '.*' -prune -o -print | \
                 cpio -pvd --preserve-modification-time \