Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!ucbvax!ANDREW.CMU.EDU!ghoti+ From: ghoti+@ANDREW.CMU.EDU (Adam Stoller) Newsgroups: comp.soft-sys.andrew Subject: Re: Failing to create DESTDIR subdirectories Message-ID: Date: 23 Aug 90 12:14:13 GMT References: <9008230006.AA20398@kurango.cs.flinders.oz.au> Sender: daemon@ucbvax.BERKELEY.EDU Organization: The Internet Lines: 94 Excerpts from internet.info-andrew: 23-Aug-90 Re: Failing to create DESTD.. Cameron Humphries@cs.fli (2156) > make DESTDIR=/sunsrc/andrew_dir install > Checking Destination Directories.... > Making directory dirs > Checking Destination Directories.... Something is definitely wrong here - if the directory /sunsrc/andrew_dir/ is empty - then not only should you see "Checking Destination Directories...", but you should also see messages like the following: "Making directory /sunsrc/andrew_dir/bin" "Making directory /sunsrc/andrew_dir/config" "Making directory /sunsrc/andrew_dir/etc" [...] ---------------- Your top-level Imakefile should have (around line 27) the following: DIRS = $(DESTDIR) \ $(DESTDIR)/bin \ $(DESTDIR)/config \ $(DESTDIR)/etc \ $(DESTDIR)/include \ $(DESTDIR)/lib \ $(DESTDIR)/doc \ $(DESTDIR)/doc/atk \ $(DESTDIR)/doc/ams \ $(DESTDIR)/help \ $(DESTDIR)/man \ $(DESTDIR)/dlib \ $(DESTDIR)/examples And (around line 63): MkdirTarget($(DIRS)) The latter should be expanded in your Makefile (around line 271 ?) to look like: install.time:: makedirs @echo -n '' install.doc:: makedirs @echo -n '' makedirs:: @echo "Checking Destination Directories...." @sh -c 'for i in $(DIRS); do \ if [ -f $$i ]; then \ echo MkdirTarget: $$i is a FILE; \ exit 1; \ elif [ ! -d $$i ]; then \ echo Making directory $$i; \ mkdir $$i; \ fi; \ done; \ exit 0' (there may be extra lines in the expansion consisting solely of '\' - depending on Imake's translation of the macro) If the first two do not check out - it sounds like you need a new top-level Imakefile. If the last one does not check out - it sounds like you need to remake the top-level Makefile. If they all check out - and /sunsrc/andrew_dir/ is indeed an empty, and writable directory - and you don't see the messages saying "Making directory [...]" then it sounds like there may be something wrong with your SHELL or filesystem, or something like that (i.e. I don't really have the foggiest...) As a sample - you might want to take an excerpt of the top level Imakefile and create one that says something like: ---------------- DA = /tmp/foo_a /tmp/foo_b /tmp/foo_c /tmp/foo_d DB = /tmp/bar_a \ /tmp/bar_b \ /tmp/bar_c MkdirTarget($(DA)) MkdirTarget($(DB)) ---------------- generate the Makefile for this against the Andrew config files (in the "normal" manner?) and then try running make on it -- It's about the only thing I can think of to try and really narrow down the problem. Hope this helps, at least a little.... --fish