Subject: Re: Weird "make all" behavior
To: Matthias Drochner <drochner@zelux6.zel.kfa-juelich.de>
From: Michael L. VanLoon -- HeadCandy.com <michaelv@MindBender.serv.net>
List: current-users
Date: 11/05/1997 08:31:07
>> Hmm... guess I never tried it with "all" last.  However, try "make
>> obj depend all install", and see if you are as successful.

>I didn't do this before because I build as ordinary user.
>When I type "make obj depend all install" it does everything
>right until the beginning of "install" -- "all" is definitely
>executed.
>Perhaps we should check if we have the same *.mk versions.

Are you sure "mkdep" isn't what you're seeing as "all"?  I see
"mkdep", then "install", and "all" is skipped.  It also looks like our
*.mk versions are in sync (for once).

To illustrate:

[root@MindBender]src/usr.sbin/config# make clean obj depend all install
rm -f a.out [Ee]rrs mklog core *.core  config files.o gram.o hash.o main.o mkheaders.o mkioconf.o mkmakefile.o mkswap.o pack.o scan.o sem.o util.o  files.ln hash.ln main.ln mkheaders.ln mkioconf.ln mkmakefile.ln mkswap.ln pack.ln sem.ln util.ln y.tab.h scan.c gram.c
/u/src/usr.sbin/config/obj -> /usr/obj/usr.sbin/config
flex  /usr/src/usr.sbin/config/scan.l
mv lex.yy.c scan.c
yacc -d /usr/src/usr.sbin/config/gram.y
mv y.tab.c gram.c
mkdep -a -I/usr/src/usr.sbin/config -I. /usr/src/usr.sbin/config/files.c /usr/src/usr.sbin/config/hash.c /usr/src/usr.sbin/config/main.c /usr/src/usr.sbin/config/mkheaders.c /usr/src/usr.sbin/config/mkioconf.c /usr/src/usr.sbin/config/mkmakefile.c /usr/src/usr.sbin/config/mkswap.c /usr/src/usr.sbin/config/pack.c /usr/src/usr.sbin/config/sem.c /usr/src/usr.sbin/config/util.c scan.c gram.c
install -c -s -o bin -g bin  -m 555 config /usr/sbin/config
install: config: No such file or directory
*** Error code 1

Stop.

[root@MindBender]src/usr.sbin/config# ident /usr/share/mk/*.mk | grep NetBSD
     $NetBSD: bsd.dep.mk,v 1.20 1997/05/09 13:25:46 mycroft Exp $
     $NetBSD: bsd.doc.mk,v 1.35 1997/10/11 08:43:34 mycroft Exp $
     $NetBSD: bsd.files.mk,v 1.5 1997/05/09 13:25:49 mycroft Exp $
     $NetBSD: bsd.inc.mk,v 1.10 1997/06/03 16:00:30 cgd Exp $
     $NetBSD: bsd.kmod.mk,v 1.22 1997/10/11 08:16:25 mycroft Exp $
     $NetBSD: bsd.lib.mk,v 1.117 1997/10/11 08:16:26 mycroft Exp $
     $NetBSD: bsd.links.mk,v 1.7 1997/05/10 10:55:19 mycroft Exp $
     $NetBSD: bsd.man.mk,v 1.34.2.1 1997/11/02 02:50:11 mellon Exp $
     $NetBSD: bsd.nls.mk,v 1.10 1997/10/11 08:16:28 mycroft Exp $
     $NetBSD: bsd.obj.mk,v 1.13 1997/05/09 13:25:59 mycroft Exp $
     $NetBSD: bsd.own.mk,v 1.54.2.1 1997/10/29 00:24:19 mellon Exp $
     $NetBSD: bsd.port.mk,v 1.13.2.1 1997/10/28 23:29:01 mellon Exp $
     $NetBSD: bsd.port.subdir.mk,v 1.3 1997/09/25 19:09:35 thorpej Exp $
     $NetBSD: bsd.prog.mk,v 1.88 1997/10/11 08:16:28 mycroft Exp $
     $NetBSD: bsd.subdir.mk,v 1.28.2.1 1997/10/29 00:28:28 mellon Exp $
     $NetBSD: bsd.sys.mk,v 1.12 1997/10/12 01:37:50 mikel Exp $
     $NetBSD: sys.mk,v 1.33 1997/05/31 21:22:02 cjs Exp $


What about our make versions?

[root@MindBender]src/usr.sbin/config# foreach i ( /usr/src/usr.bin/make/[Mm]ake* /usr/src/usr.bin/make/*.[ch] /usr/src/usr.bin/make/*/[Mm]ake* /usr/src/usr.bin/make/*/*.[ch] )
foreach? ident $i | fgrep NetBSD | head -1
foreach? end
     $NetBSD: Makefile,v 1.17 1997/10/19 04:23:02 lukem Exp $
     $NetBSD: Makefile.boot,v 1.8 1996/12/31 17:52:23 christos Exp $
     $NetBSD: make.1,v 1.25 1997/10/19 05:05:24 lukem Exp $
     $NetBSD: make.c,v 1.19 1997/09/28 03:31:07 lukem Exp $
     $NetBSD: make.h,v 1.18 1997/09/23 21:15:08 fair Exp $
     $NetBSD: arch.c,v 1.26 1997/10/03 17:58:00 thorpej Exp $
     $NetBSD: bit.h,v 1.5 1995/11/08 02:30:53 christos Exp $
     $NetBSD: buf.c,v 1.11 1997/09/28 03:31:00 lukem Exp $
     $NetBSD: buf.h,v 1.7 1996/12/31 17:53:22 christos Exp $
     $NetBSD: compat.c,v 1.22 1997/09/28 03:31:01 lukem Exp $
     $NetBSD: cond.c,v 1.9 1997/09/28 03:31:01 lukem Exp $
     $NetBSD: config.h,v 1.9 1997/09/26 13:29:09 christos Exp $
     $NetBSD: dir.c,v 1.20 1997/09/28 03:31:02 lukem Exp $
     $NetBSD: dir.h,v 1.5 1997/05/08 21:24:42 gwr Exp $
     $NetBSD: for.c,v 1.6 1997/09/28 03:31:03 lukem Exp $
     $NetBSD: hash.c,v 1.8 1997/09/28 03:31:04 lukem Exp $
     $NetBSD: hash.h,v 1.5 1996/11/06 17:59:07 christos Exp $
     $NetBSD: job.c,v 1.21 1997/09/28 03:31:05 lukem Exp $
     $NetBSD: job.h,v 1.5 1996/11/06 17:59:10 christos Exp $
     $NetBSD: list.h,v 1.5 1996/11/06 17:59:11 christos Exp $
     $NetBSD: lst.h,v 1.7 1996/11/06 17:59:12 christos Exp $
     $NetBSD: main.c,v 1.38 1997/09/28 03:31:07 lukem Exp $
     $NetBSD: make.c,v 1.19 1997/09/28 03:31:07 lukem Exp $
     $NetBSD: make.h,v 1.18 1997/09/23 21:15:08 fair Exp $
     $NetBSD: nonints.h,v 1.14 1997/09/23 21:15:09 fair Exp $
     $NetBSD: parse.c,v 1.36 1997/09/28 03:31:09 lukem Exp $
     $NetBSD: pathnames.h,v 1.6 1996/11/06 17:59:21 christos Exp $
     $NetBSD: sprite.h,v 1.6 1996/11/06 17:59:22 christos Exp $
     $NetBSD: str.c,v 1.15 1997/09/28 03:31:10 lukem Exp $
     $NetBSD: suff.c,v 1.18 1997/09/28 03:31:11 lukem Exp $
     $NetBSD: targ.c,v 1.14 1997/09/28 03:31:12 lukem Exp $
     $NetBSD: util.c,v 1.15 1997/09/28 03:31:13 lukem Exp $
     $NetBSD: var.c,v 1.23 1997/09/28 03:31:14 lukem Exp $
     $NetBSD: Makefile,v 1.2 1995/06/14 15:20:23 christos Exp $
     $NetBSD: Makefile,v 1.4 1996/11/06 17:59:31 christos Exp $
     $NetBSD: crt0.c,v 1.28 1997/10/20 13:49:45 mycroft Exp $
ident warning: no id keywords in /usr/src/usr.bin/make/obj/make.cat1
     $NetBSD: make.c,v 1.19 1997/09/28 03:31:07 lukem Exp $
     $NetBSD: lstAppend.c,v 1.7 1997/09/28 03:31:16 lukem Exp $
     $NetBSD: lstAtEnd.c,v 1.7 1997/09/28 03:31:16 lukem Exp $
     $NetBSD: lstAtFront.c,v 1.7 1997/09/28 03:31:17 lukem Exp $
     $NetBSD: lstClose.c,v 1.7 1997/09/28 03:31:18 lukem Exp $
     $NetBSD: lstConcat.c,v 1.8 1997/09/28 03:31:19 lukem Exp $
     $NetBSD: lstDatum.c,v 1.7 1997/09/28 03:31:19 lukem Exp $
     $NetBSD: lstDeQueue.c,v 1.7 1997/09/28 03:31:20 lukem Exp $
     $NetBSD: lstDestroy.c,v 1.8 1997/09/28 03:31:21 lukem Exp $
     $NetBSD: lstDupl.c,v 1.8 1997/09/28 03:31:21 lukem Exp $
     $NetBSD: lstEnQueue.c,v 1.7 1997/09/28 03:31:22 lukem Exp $
     $NetBSD: lstFind.c,v 1.8 1997/09/28 03:31:23 lukem Exp $
     $NetBSD: lstFindFrom.c,v 1.8 1997/09/28 03:31:24 lukem Exp $
     $NetBSD: lstFirst.c,v 1.7 1997/09/28 03:31:24 lukem Exp $
     $NetBSD: lstForEach.c,v 1.8 1997/09/28 03:31:25 lukem Exp $
     $NetBSD: lstForEachFrom.c,v 1.7 1997/09/28 03:31:26 lukem Exp $
     $NetBSD: lstInit.c,v 1.7 1997/09/28 03:31:27 lukem Exp $
     $NetBSD: lstInsert.c,v 1.7 1997/09/28 03:31:28 lukem Exp $
     $NetBSD: lstInt.h,v 1.7 1996/11/06 17:59:44 christos Exp $
     $NetBSD: lstIsAtEnd.c,v 1.7 1997/09/28 03:31:29 lukem Exp $
     $NetBSD: lstIsEmpty.c,v 1.7 1997/09/28 03:31:30 lukem Exp $
     $NetBSD: lstLast.c,v 1.7 1997/09/28 03:31:30 lukem Exp $
     $NetBSD: lstMember.c,v 1.7 1997/09/28 03:31:31 lukem Exp $
     $NetBSD: lstNext.c,v 1.7 1997/09/28 03:31:32 lukem Exp $
     $NetBSD: lstOpen.c,v 1.7 1997/09/28 03:31:32 lukem Exp $
     $NetBSD: lstRemove.c,v 1.7 1997/09/28 03:31:33 lukem Exp $
     $NetBSD: lstReplace.c,v 1.7 1997/09/28 03:31:34 lukem Exp $
     $NetBSD: lstSucc.c,v 1.7 1997/09/28 03:31:35 lukem Exp $

-----------------------------------------------------------------------------
  Michael L. VanLoon                           michaelv@MindBender.serv.net
      Contract software development for Windows NT, Windows 95 and Unix.
             Windows NT and Unix server development in C++ and C.

        --<  Free your mind and your machine -- NetBSD free un*x  >--
    NetBSD working ports: 386+PC, Mac 68k, Amiga, Atari 68k, HP300, Sun3,
        Sun4/4c/4m, DEC MIPS, DEC Alpha, PC532, VAX, MVME68k, arm32...
    NetBSD ports in progress: PICA, others...
-----------------------------------------------------------------------------