This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: [Ada] Support for building Ada utilities to autogenerate files


* Geert Bosch wrote:
>Another change is to generate the files in the build directory
>rather than in the source directory, which indeed seems cleaner to me.

I prefer to keep the source tree as clean as possible:

xtreeprs xeinfo xsinfo xnmake:	%:	%.adb cleanbuilddir
	($(CP) $< $(cleanbuilddir); cd $(cleanbuilddir); $(GNATMAKE) $@)
	$(MV) $(cleanbuilddir)/$@ $(fcurdir)
	$(RM) $(cleanbuilddir)/$@*

and

$(srcdir)/treeprs.ads : treeprs.adt sinfo.ads xtreeprs
	(cd $(srcdir); $(fcurpfx)xtreeprs)

cleanbuilddir:	$(cleanbuilddir)
	$(MKDIR) $(cleanbuilddir)

plus a cleanup patch. I do not provide a patch right now, because this
is a moving target at the moment. I'll drop this contruct now.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]