summaryrefslogtreecommitdiff
path: root/package/targets.mak
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2019-12-30 20:31:24 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2019-12-30 20:31:24 +0000
commit72dd49d7dd07ba4cae13ee1249fd58550991c188 (patch)
treee85f546a63dcdd99e806071ea88b83282341d82a /package/targets.mak
parentd9b6a5820f195ef681d7cd15d70a184265b37a94 (diff)
downloadexecline-72dd49d7dd07ba4cae13ee1249fd58550991c188.tar.xz
Rename cd/umask to execline-cd/execline-umask, make symlinks, etc.
Diffstat (limited to 'package/targets.mak')
-rw-r--r--package/targets.mak22
1 files changed, 13 insertions, 9 deletions
diff --git a/package/targets.mak b/package/targets.mak
index b502988..be4764d 100644
--- a/package/targets.mak
+++ b/package/targets.mak
@@ -1,7 +1,6 @@
BIN_TARGETS := \
background \
backtick \
-cd \
define \
dollarat \
elgetopt \
@@ -11,6 +10,8 @@ emptyenv \
envfile \
exec \
execlineb \
+execline-cd \
+execline-umask \
exit \
export \
fdblock \
@@ -36,12 +37,13 @@ multidefine \
multisubstitute \
pipeline \
piperw \
+posix-cd \
+posix-umask \
redirfd \
runblock \
shift \
trap \
tryexec \
-umask \
unexport \
wait \
withstdinas
@@ -51,13 +53,15 @@ LIBEXEC_TARGETS :=
LIB_DEFS := EXECLINE=execline
ifeq ($(PEDANTIC_POSIX),1)
+PEDANTIC_PREFIX := posix
+else
+PEDANTIC_PREFIX := execline
+endif
-BIN_TARGETS += posix-cd posix-umask
-
-$(DESTDIR)$(bindir)/cd: $(DESTDIR)$(bindir)/posix-cd
- exec ./tools/install.sh -l posix-cd $(DESTDIR)$(bindir)/cd
+install-bin: $(DESTDIR)$(bindir)/cd $(DESTDIR)$(bindir)/umask
-$(DESTDIR)$(bindir)/umask: $(DESTDIR)$(bindir)/posix-umask
- exec ./tools/install.sh -l posix-umask $(DESTDIR)$(bindir)/umask
+$(DESTDIR)$(bindir)/cd: $(DESTDIR)$(bindir)/$(PEDANTIC_PREFIX)-cd
+ exec ./tools/install.sh -l $(PEDANTIC_PREFIX)-cd $(DESTDIR)$(bindir)/cd
-endif
+$(DESTDIR)$(bindir)/umask: $(DESTDIR)$(bindir)/$(PEDANTIC_PREFIX)-umask
+ exec ./tools/install.sh -l $(PEDANTIC_PREFIX)-umask $(DESTDIR)$(bindir)/umask