[lfs-dev] sysvinit

Bruce Dubbs bruce.dubbs at gmail.com
Mon Mar 5 19:29:20 PST 2012

Lemon Lime wrote:
> I think the "-C src" in the instructions for sysvinit is not needed:
> pkg:~/build/sysvinit-2.88dsf$ cat Makefile
> all install clean distclean:
> 	$(MAKE) -C src $@
> I already built it a few times with just "make" and "make install" and
> it worked.

You're right.  It's not needed to build.  We could also have done:

cd src
sed -i 's at Sending processes@& configured via /etc/inittab at g' init.c
sed -i -e 's/utmpdump wall/utmpdump/' \
        -e '/= mountpoint/d'           \
        -e 's/mountpoint.1 wall.1//' Makefile
make install

There's more than one way to do things, but we like to show some 
variations of commands too when they are not too exotic.

   -- Bruce

More information about the lfs-dev mailing list