Subject: bin/3894: make(1) fails with multiple commandline targets
To: None <gnats-bugs@gnats.netbsd.org>
From: None <frank@wins.uva.nl>
List: netbsd-bugs
Date: 07/21/1997 02:09:14
>Number:         3894
>Category:       bin
>Synopsis:       make(1) fails with multiple commandline targets
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bin-bug-people (Utility Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Jul 20 17:05:01 1997
>Last-Modified:
>Originator:     Frank van der Linden
>Organization:
	4.4BSD-Nite: We Hack While You Sleep.
>Release:        NetBSD-current 072197
>Environment:
System: NetBSD frank 1.2G NetBSD 1.2G (FRANK) #21: Mon Jul 21 00:31:52 MEST 1997 root@frank:/usr/src/sys/arch/i386/compile/FRANK i386


>Description:
	make(1) fails with multiple targets on the commandline, at least
	in some cases. Most notably when the targets are dependent.
	An example of this is "make all install", where it goes to
	the 'install' target without doing 'all' first, which fails
	hopelessly if nothing has been made yet.
>How-To-Repeat:
frank# cd /usr/src/bin/sh
frank# make cleandir
rm -f a.out [Ee]rrs mklog core *.core  sh alias.o cd.o echo.o error.o eval.o exec.o expand.o histedit.o input.o jobs.o mail.o main.o memalloc.o miscbltin.o mystring.o options.o parser.o redir.o show.o trap.o output.o var.o arith.o arith_lex.o builtins.o init.o nodes.o syntax.o  alias.ln cd.ln echo.ln error.ln eval.ln exec.ln expand.ln histedit.ln input.ln jobs.ln mail.ln main.ln memalloc.ln miscbltin.ln mystring.ln options.ln parser.ln redir.ln show.ln trap.ln output.ln var.ln arith.ln arith_lex.ln builtins.ln init.ln nodes.ln syntax.ln mkinit mknodes mksyntax mkinit.o mknodes.o mksyntax.o arith.c arith_lex.c builtins.c builtins.h init.c nodes.c nodes.h  syntax.c syntax.h token.h y.tab.h  
rm -f sh.cat1
rm -f .depend /usr/src/bin/sh/tags
frank# make all install
install -c -s -o bin -g bin  -m 555 sh /bin/sh
install: sh: No such file or directory
*** Error code 1

Stop.
frank# make -n all install
install -c -s -o bin -g bin  -m 555 sh /bin/sh
install -c -o bin -g bin -m 444 sh.cat1 /usr/share/man/cat1/sh.0

>Fix:
	Unknown to me.
>Audit-Trail:
>Unformatted: