From 7c3d9bf2b9a7b2572de1569fae9e835a98540a19 Mon Sep 17 00:00:00 2001 From: Jonas 'Sortie' Termansen Date: Tue, 29 Dec 2015 02:31:26 +0100 Subject: [PATCH] Move tix to sbin. --- doc/cross-development | 7 +++++-- tix/Makefile | 6 +++--- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/doc/cross-development b/doc/cross-development index bba96a4c..4ea814aa 100644 --- a/doc/cross-development +++ b/doc/cross-development @@ -59,6 +59,7 @@ typically decide to set them up somewhat like this: CROSS_PREFIX=/home/user/opt/x86_64-sortix SORTIX_SYSROOT=/home/user/sortix/sysroot export PATH="/home/user/opt/x86_64-sortix/bin:$PATH" + export PATH="/home/user/opt/x86_64-sortix/sbin:$PATH" The following sections describe these variables in detail. @@ -78,9 +79,10 @@ such as $HOME/opt/$SORTIX_PLATFORM. This allows you to easily dispose of the directory and keeps it neatly isolated from the rest of the system. Let's refer to that location as $CROSS_PREFIX. -You need to add $CROSS_PREFIX/bin to your $PATH variable: +You need to add $CROSS_PREFIX/bin and $CROSS_PREFIX/sbin to your $PATH variable: export PATH="$CROSS_PREFIX/bin:$PATH" + export PATH="$CROSS_PREFIX/sbin:$PATH" This will modify the $PATH variable in this particular shell session. Depending on your shell and system configuration you can make this permanent by adding @@ -102,7 +104,8 @@ commands: make distclean These tools produce platform independent output so you may wish to install them -into $HOME/bin or /usr/local/bin or where it suits you in your $PATH. +into $HOME or /usr/local or where it suits you, and add its bin and sbin to your +$PATH. Setting up basic system root ---------------------------- diff --git a/tix/Makefile b/tix/Makefile index 0e06329a..438e5a7f 100644 --- a/tix/Makefile +++ b/tix/Makefile @@ -31,11 +31,11 @@ all: $(PROGRAMS) %: %.cpp util.h $(CXX) -std=gnu++11 $(CPPFLAGS) $(CXXFLAGS) $< -o $@ -$(DESTDIR)$(BINDIR): +$(DESTDIR)$(SBINDIR): mkdir -p $@ -install: all $(DESTDIR)$(BINDIR) - install $(PROGRAMS) $(DESTDIR)$(BINDIR) +install: all $(DESTDIR)$(SBINDIR) + install $(PROGRAMS) $(DESTDIR)$(SBINDIR) clean: rm -f $(BINARIES)