Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 23 Apr 1995 04:33:45 -0700 (PDT)
From:      "Rodney W. Grimes" <rgrimes@gndrsh.aac.dev.com>
To:        charnier@lirmm.fr (Philippe Charnier)
Cc:        hackers@FreeBSD.org
Subject:   Re: pb using maninstall
Message-ID:  <199504231133.EAA04058@gndrsh.aac.dev.com>
In-Reply-To: <199504230829.KAA27599@lirmm.lirmm.fr> from "Philippe Charnier" at Apr 23, 95 10:29:02 am

next in thread | previous in thread | raw e-mail | index | archive | help
> 
> Hello,
> 
> 
> in /usr/src/gnu/usr.bin/ld
> 
> make maninstall
>   from ld : ld.1
> 
> make realinstall
>   from ldconfig : ldconfig.8
>   from ldd      : ldd.1
> 
> make install or afterinstall
>   from ldconfig : ldconfig.8
>   from ldd      : ldd.1
>   from rtld     : cd /usr/src/gnu/usr.bin/ld; install ld.1
> 
> 
> /usr/src/gnu/usr.bin/ld is particular because it contains a PROG (ld) 
> and contains subdirs containing others PROGs (ldconfig, ldd, rtld).
> 
> I tried the following (BUT FAILED) because maninstall go into subdirs and 
> current dir but install don't see current dir.
> 
> 
> ===================================================================
> RCS file: /home2h/FreeBSD.cvsroot/src/gnu/usr.bin/ld/Makefile,v
> retrieving revision 1.16
> diff -c -r1.16 Makefile
> *** 1.16        1994/12/23 22:30:29
> --- Makefile    1995/04/22 16:13:49
> ***************
> *** 16,19 ****
> --- 16,20 ----
>   
>   .PATH: $(.CURDIR)/$(MACHINE)
>   
> + .include <bsd.subdir.mk>
>   .include <bsd.prog.mk>

bsd.prog.mk already contains the equivelent of bsd.subdir.mk, this
patch is not the right thing to do.
 
There is some brokenness in the .mk files that is not so easy to
fix though do to overloaded target names :-(.

maninstall is really an internal target that was not meant to be
used by the user.  You are abusing an undocumented ``feature'' and
expecting it to do what *you* want it to do and not what the internals
of the .mk files want it to do.  Please read src/share/mk/bsd.README,
there is no exported target called maninstall for a #include of <bsd.prog.mk>


-- 
Rod Grimes                                      rgrimes@gndrsh.aac.dev.com
Accurate Automation Company                   Custom computers for FreeBSD



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199504231133.EAA04058>