From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.5-pre1 (2020-06-20) on ip-172-31-74-118.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-1.9 required=3.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.5-pre1 Path: eternal-september.org!reader02.eternal-september.org!news.mixmin.net!aioe.org!pBWEO6hi52oGFheO/GY5ag.user.gioia.aioe.org.POSTED!not-for-mail From: Stephen Leake Newsgroups: comp.lang.ada Subject: Re: Suggestion about best practice with .gpr files Date: Mon, 31 May 2021 10:07:31 -0700 Organization: Aioe.org NNTP Server Message-ID: <86wnrede7g.fsf@stephe-leake.org> References: <966aa783-a803-46ea-bdac-3092bc8ad418n@googlegroups.com> NNTP-Posting-Host: pBWEO6hi52oGFheO/GY5ag.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/28.0.50 (windows-nt) X-Notice: Filtered by postfilter v. 0.9.2 Cancel-Lock: sha1:VID/44uPJ2Jz/Es/KPRTt9zAhpw= Xref: reader02.eternal-september.org comp.lang.ada:62061 List-Id: Maxim Reznik writes: > foolib/ > ...| > ...+-- Makefile > ...+--alire.toml > ...+-- docs > ...+-- gnat > ...| > ......+-- foo.gpr > ......+-- foo_tests.gpr > ...+-- source > ...+-- testsuite I used to maintain a project that was compiled with gnat for general development and initial testing, and ObjectAda for final testing and release. So there was an "object_ada" directory parallel to the "gnat" directory. But I also found that the Makefiles differed enough that they were in those directories as well; shared rules are in a "rules.make" file. Similar issues arise when maintaining distribution files for several OS versions. And "docs" are source, just in a different language. Why are they in a separate directory? If you are grepping for all occurences of variable "foo", you want to search the .texi and .ad[sb] files at the same time. -- -- Stephe