summaryrefslogtreecommitdiff
path: root/package/targets.mak
diff options
context:
space:
mode:
Diffstat (limited to 'package/targets.mak')
-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