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:410f:: with SMTP id q15mr16355211qtl.192.1580142160458; Mon, 27 Jan 2020 08:22:40 -0800 (PST) X-Received: by 2002:a9d:12f1:: with SMTP id g104mr12357026otg.149.1580142160191; Mon, 27 Jan 2020 08:22:40 -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!g89no4510745qtd.0!news-out.google.com!w29ni677qtc.0!nntp.google.com!g89no4510739qtd.0!postnews.google.com!google-groups.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Mon, 27 Jan 2020 08:22:40 -0800 (PST) Complaints-To: groups-abuse@google.com Injection-Info: google-groups.googlegroups.com; posting-host=158.110.157.210; posting-account=9fwclgkAAAD6oQ5usUYhee1l39geVY99 NNTP-Posting-Host: 158.110.157.210 User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <033b9157-cc60-42cd-a7a8-ee4313029752@googlegroups.com> Subject: gpr and Makefiles From: mockturtle Injection-Date: Mon, 27 Jan 2020 16:22:40 +0000 Content-Type: text/plain; charset="UTF-8" Xref: reader01.eternal-september.org comp.lang.ada:57961 Date: 2020-01-27T08:22:40-08:00 List-Id: Dear.all, I have a question about the interaction between gprbuild and Makefile. I googled a bit and found mostly how to use gprbuild inside a Makefile, but, in a sense, I am interested in the other way around. More precisely, among all my source files there is one package (say, foo.ads) that it is actually generated by an external file (say, bar.txt) using an utility (call it "convert"). The matter is a bit more complex, but this is the core of the issue. I can express the dependency between foo.ads and bar.txt in a Makefile like 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. Thank you in advance for your help Riccardo