summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlejandro Colomar <alx@kernel.org>2023-04-03 03:13:23 +0200
committerAlejandro Colomar <alx@kernel.org>2023-04-03 03:14:09 +0200
commitfa1ca0e34ac787f444fa5ece5bf172d68fb8d881 (patch)
treebd6ee8c236161dbc66f58854839c40e148330b3b
parentc426fe939e58607f6d0790b24e7da02962c20e67 (diff)
cmd.mk, dist.mk: Keep file modes in the tarball
Signed-off-by: Alejandro Colomar <alx@kernel.org>
-rw-r--r--lib/cmd.mk1
-rw-r--r--lib/dist.mk4
2 files changed, 3 insertions, 2 deletions
diff --git a/lib/cmd.mk b/lib/cmd.mk
index efef045bf..f24a51924 100644
--- a/lib/cmd.mk
+++ b/lib/cmd.mk
@@ -8,6 +8,7 @@ ifndef MAKEFILE_CMD_INCLUDED
MAKEFILE_CMD_INCLUDED := 1
+CP := cp
ECHO := echo
EXPR := expr
FIND := find
diff --git a/lib/dist.mk b/lib/dist.mk
index 926473f2c..9aa1454c5 100644
--- a/lib/dist.mk
+++ b/lib/dist.mk
@@ -35,8 +35,8 @@ $(_DISTPAGES): $(_DISTDIR)/man%: $(srcdir)/man% FORCE | $$(@D)/
$(SED) -i "/^.TH/s/(date)/$$(git log --format=%cs -1 -- $<)/" $@
$(_DISTOTHERS): $(_DISTDIR)/%: $(srcdir)/% | $$(@D)/
- $(info INSTALL $@)
- $(INSTALL_DATA) -T $< $@
+ $(info CP $@)
+ $(CP) -T $< $@
$(DISTFILE): $(_DISTFILES) | $$(@D)/