This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [Ada] Support for building Ada utilities to autogenerate files
- To: gcc-patches at gcc dot gnu dot org
- Subject: Re: [Ada] Support for building Ada utilities to autogenerate files
- From: lutz at iks-jena dot de (Lutz Donnerhacke)
- Date: Tue, 9 Oct 2001 07:11:36 +0000 (UTC)
- Newsgroups: iks.lists.gcc.patches
- Organization: IKS GmbH Jena
- References: <Pine.GSO.4.10.10110081946300.5314-100000@nile.gnat.com>
* 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.