On Thu, Oct 16, 2014 at 09:26:01AM +0000, k...@shike2.com wrote: > From: "Roberto E. Vargas Caballero" <k...@shike2.com> > > --- > Makefile | 6 +++++- > config.def.h | 2 ++ > last.c | 59 > ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ > 3 files changed, 66 insertions(+), 1 deletion(-) > create mode 100644 last.c
Thanks! One comment below. > diff --git a/Makefile b/Makefile > index 3989a77..07c2de0 100644 > --- a/Makefile > +++ b/Makefile > @@ -33,6 +33,7 @@ LIB = \ > util/tty.o > > SRC = \ > + last.c \ > lastlog.c \ > chvt.c \ > clear.c \ > @@ -131,7 +132,7 @@ MAN8 = \ > umount.8 > > OBJ = $(SRC:.c=.o) $(LIB) > -BIN = $(SRC:.c=) > +BIN = $(SRC:.c=) lastb > > all: options binlib > > @@ -165,6 +166,9 @@ util.a: $(LIB) > @$(AR) -r -c $@ $(LIB) > @ranlib $@ > > +lastb: last > + ln -f last lastb > + This will not quite work for the ubase-box target. Any ideas on how to proceed?