From mboxrd@z Thu Jan 1 00:00:00 1970 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes From: "Bart Schaefer" Message-Id: <990205085841.ZM23447@candle.brasslantern.com> Date: Fri, 5 Feb 1999 08:58:41 -0800 In-Reply-To: <9902050948.AA57511@ibmth.df.unipi.it> Comments: In reply to Peter Stephenson "Re: Make dependencies broken in pws-6 + latest patches" (Feb 5, 10:48am) References: <9902050948.AA57511@ibmth.df.unipi.it> X-Mailer: Z-Mail (4.0b.820 20aug96) To: zsh-workers@sunsite.auc.dk Subject: Re: Make dependencies broken in pws-6 + latest patches MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailing-List: 5287 On Feb 5, 10:48am, Peter Stephenson wrote: } Subject: Re: Make dependencies broken in pws-6 + latest patches } } "Bart Schaefer" wrote: } > I've noticed previously that changes to Config/version.mk don't cause the } > Src/version.h file to be updated. } > } > Now, with PWS's bashautolist patch, rebuilding with the changed zsh.h left } > the opts[] array messed up. } } Me not neither. I noticed this, too, and discovered that main.o } wasn't being remade --- removing main.o and making should work. This } is because $(MAIN_OBJS) depends on Makemod, which was up to date. } } As for the version number, there are already explicit dependencies for } this in Makemod. } } version.h: $(sdir_top)/Config/version.mk } echo '#define ZSH_VERSION "'$(VERSION)'"' > $@ OK, I think the problem is that Makemod itself isn't being rebuilt. The $(VERSION) is set by AC_FILE_SUBST-ing version.mk into Makemod.in.in, but Makemod doesn't have a dependency for Makemod.in nor does Makemod.in have one for version.mk. Similarly, it's only sufficient for $(MAIN_OBJS) to be dependent solely on Makemod only if Makemod depends on zsh.h. I think somebody made the assumption that "configure" would ALWAYS be run (manually) before running "make". However, I'm still not sure where the right place to add those dependencies is. It'd be obvious to make $(MAIN_OBJS) depend on zsh.h, but really *all* the files should depend on zsh.h, no? And would the Makemod.in dependency on version.mk go *in* version.mk? That would work after the first manual reconfigure, I think, because Makefile.in depends on Makemod.in so (I think) the whole make system would get rebuilt upon a change to version.mk. -- Bart Schaefer Brass Lantern Enterprises http://www.well.com/user/barts http://www.brasslantern.com