Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!ucbvax!mtgzx.att.com!jis From: jis@mtgzx.att.com (J Mukerji) Newsgroups: comp.soft-sys.andrew Subject: imake.tmpl question Message-ID: Date: 24 Sep 90 19:59:25 GMT Sender: daemon@ucbvax.BERKELEY.EDU Organization: The Internet Lines: 60 I am trying to add a few directories to the andrew source tree to place locally developed stuff into. Ideally I would like to have these directories integrated in such a way that doing a "make World" at the top level will build these directories too. I noticed that there is a macro called EXTRASUBDIRS that can be used to specify additional subdirectories to build at the root. So I setup my additional subdirectories with appropriate Imakefiles and all, and then added the following lines to config/site.mcr: #ifdef MK_LOCAL LOCAL = local #endif /* MK_LOCAL */ #ifdef MK_SDA SDA = sda #endif /* MK_SDA */ EXTRASUBDIRS = $(LOCAL) $(SDA) and added the following lines to config/site.h: #define MK_LOCAL #define MK_SDA And cranked up the imake command as specified in the README.ez file to make me a Makefile at the root. When I took a peek at the Makefile thus created I was disappointed to find that while the rules for MakeSubdirs, DependMakeSubdirs, CleanSubdirs, TidySubdirs, TagsSubdirs, and MakefileSubdirs contained EXTRASUBDIRS, the rules for dependInstallClean, InstallSubdirs, InstallDocSubdirs, InstallAliasSubdirs, DependInstallSubdirs, and WorldInstallSubdirs do not contain EXTRASUBDIRS. This of course makes it very inconvenient for me to use EXTRASUBDIRS to do what I wanted to do. Now I have one of two alternatives: (i) Hack the root level Imakefile to do what I want to do. (ii) Change imake.tmpl to add EXTRASUBDIRS to the rules that are missing them. My question is what course does the collective wisdom of info-andrew suggest that I take. For the time being I have changed imake.tmpl since that seemed to be simpler to do than the other alternative. However, since I do not know the rationale behind the way imake.tmpl was originally setup, I do not know whether what I did is right or not. So I look for the guidance of Andrew experts. BTW I have built Andrew PL6 using my modified imake.tmpl and it builds and installs fine, including the local stuff. Thanks. Jishnu Mukerji, jis@mtgzx.att.com, +1 201 957 5986, AT&T Bell Laboratories, MT 3K-423, 200 Laurel Ave., Middletown NJ 07748