From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Received: by 2002:ac8:367b:: with SMTP id n56mr14267986qtb.258.1580157029291; Mon, 27 Jan 2020 12:30:29 -0800 (PST) X-Received: by 2002:a9d:3d0a:: with SMTP id a10mr14053176otc.327.1580157028982; Mon, 27 Jan 2020 12:30:28 -0800 (PST) Path: eternal-september.org!reader01.eternal-september.org!feeder.eternal-september.org!news.gegeweb.eu!gegeweb.org!usenet-fr.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!g89no5143459qtd.0!news-out.google.com!w29ni691qtc.0!nntp.google.com!g89no5143454qtd.0!postnews.google.com!google-groups.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Mon, 27 Jan 2020 12:30:28 -0800 (PST) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: google-groups.googlegroups.com; posting-host=93.41.2.250; posting-account=9fwclgkAAAD6oQ5usUYhee1l39geVY99 NNTP-Posting-Host: 93.41.2.250 References: <033b9157-cc60-42cd-a7a8-ee4313029752@googlegroups.com> <3500a9de-3d02-4e8b-b75a-09ea5dc28570@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <68a3e412-9a0f-4b56-bc0f-096a2db3e6a4@googlegroups.com> Subject: Re: gpr and Makefiles From: mockturtle Injection-Date: Mon, 27 Jan 2020 20:30:29 +0000 Content-Type: text/plain; charset="UTF-8" Xref: reader01.eternal-september.org comp.lang.ada:57968 Date: 2020-01-27T12:30:28-08:00 List-Id: On Monday, January 27, 2020 at 8:46:03 PM UTC+1, Simon Wright wrote: > Shark8 writes: > > > On Monday, January 27, 2020 at 9:22:41 AM UTC-7, mockturtle wrote: > >> > >> foo.ads: bar.txt > >> convert --from=bar.txt --to=foo.ads > >> > >> What I would like is having gprbuild checking if bar.txt is newer > >> than foo.ads; if it is, run convert and after that proceed with the > >> actual building. > >> > >> Is this possible? > >> > >> I also checked Gem #152 > >> (https://www.adacore.com/gems/gem-152-defining-a-new-language-in-a-project-file) > >> about defining a new language inside a gpr file, but I am not sure > >> it can be a solution. > > Why not? > > Wouldn't you just use > > > > Package Compiler is > > for Driver ("Converter") use "convert"; > > for Object_Generated ("Converter") use "False"; > > --... > > End Compiler; > > The Gem seems only to be about "languages" that compile to object (.o) > files. Actually, near the end it talks about the attribute Object_Generated that if set to False it tells to the gprbuild that no object is generated