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=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!feeder.eternal-september.org!aioe.org!.POSTED.Oh2LSLzxQ4+YU0Htrufc+A.user.gioia.aioe.org!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: gpr and Makefiles Date: Mon, 27 Jan 2020 19:46:01 +0000 Organization: Aioe.org NNTP Server Message-ID: References: <033b9157-cc60-42cd-a7a8-ee4313029752@googlegroups.com> <3500a9de-3d02-4e8b-b75a-09ea5dc28570@googlegroups.com> NNTP-Posting-Host: Oh2LSLzxQ4+YU0Htrufc+A.user.gioia.aioe.org Mime-Version: 1.0 Content-Type: text/plain X-Complaints-To: abuse@aioe.org User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (darwin) Cancel-Lock: sha1:67F377qP1EAGw7N8ET4Ir8VDEM4= X-Notice: Filtered by postfilter v. 0.9.2 Xref: reader01.eternal-september.org comp.lang.ada:57966 Date: 2020-01-27T19:46:01+00:00 List-Id: 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.