From 0794af3ae893abc2b3ef76daee2002051ba15f5f Mon Sep 17 00:00:00 2001 From: midipix Date: Sat, 9 Jun 2018 00:32:51 +0000 Subject: project: added the install-app-extras build target, for cmd specific symlinks. --- project/extras.mk | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/project/extras.mk b/project/extras.mk index 947c24f..5795402 100644 --- a/project/extras.mk +++ b/project/extras.mk @@ -33,3 +33,18 @@ clbuild-bat: --version-header=ntux_version.h \ --version-macro=NTUX_GIT_VERSION \ --link-target=app + +install-app-extras: + mkdir -p $(DESTDIR)$(BINDIR) + + rm -f bin/$(NICKNAME).stat$(OS_APP_SUFFIX).tmp + rm -f bin/$(NICKNAME).spawn$(OS_APP_SUFFIX).tmp + rm -f bin/$(NICKNAME).strace$(OS_APP_SUFFIX).tmp + + ln -s $(NICKNAME)$(OS_APP_SUFFIX) bin/$(NICKNAME).stat$(OS_APP_SUFFIX).tmp + ln -s $(NICKNAME)$(OS_APP_SUFFIX) bin/$(NICKNAME).spawn$(OS_APP_SUFFIX).tmp + ln -s $(NICKNAME)$(OS_APP_SUFFIX) bin/$(NICKNAME).strace$(OS_APP_SUFFIX).tmp + + mv bin/$(NICKNAME).stat$(OS_APP_SUFFIX).tmp $(DESTDIR)$(BINDIR)/$(NICKNAME).stat$(OS_APP_SUFFIX) + mv bin/$(NICKNAME).spawn$(OS_APP_SUFFIX).tmp $(DESTDIR)$(BINDIR)/$(NICKNAME).spawn$(OS_APP_SUFFIX) + mv bin/$(NICKNAME).strace$(OS_APP_SUFFIX).tmp $(DESTDIR)$(BINDIR)/$(NICKNAME).strace$(OS_APP_SUFFIX) -- cgit v1.2.3