summary refs log tree commit diff
path: root/package
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2023-11-02 18:27:53 +0000
committerLaurent Bercot <ska@appnovation.com>2023-11-02 18:27:53 +0000
commit813a7ae859c0563f87c2afef79d346b853c20e36 (patch)
tree36ae2db624345f0298e7070dfb5c27d44587a2d2 /package
parent61d68e5efd9b81f0df3303c1a1bdefcf7688d3f1 (diff)
downloadexecline-813a7ae859c0563f87c2afef79d346b853c20e36.tar.gz
execline-813a7ae859c0563f87c2afef79d346b853c20e36.tar.xz
execline-813a7ae859c0563f87c2afef79d346b853c20e36.zip
Tentative workaround for make bug
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'package')
-rw-r--r--package/targets.mak6
1 files changed, 6 insertions, 0 deletions
diff --git a/package/targets.mak b/package/targets.mak
index 8fc04a1..a7a1fd9 100644
--- a/package/targets.mak
+++ b/package/targets.mak
@@ -32,4 +32,10 @@ SYMLINK_TARGET_cd := execline-cd
 SYMLINK_TARGET_umask := execline-umask
 endif
 
+$(DESTDIR)$(bindir)/define: ./define package/modes
+	exec $(INSTALL) -D -m 600 $< $@
+	grep -- ^$(@F) < package/modes | { read name mode owner && \
+	if [ x$$owner != x ] ; then chown -- $$owner $@ ; fi && \
+	chmod $$mode $@ ; }
+
 endif