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:a5d:9ad7:: with SMTP id x23mr9013063ion.21.1549072839788; Fri, 01 Feb 2019 18:00:39 -0800 (PST) X-Received: by 2002:a9d:148:: with SMTP id 66mr280777otu.5.1549072839602; Fri, 01 Feb 2019 18:00:39 -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.166.215.MISMATCH!k10no355183itk.0!news-out.google.com!v71ni471ita.0!nntp.google.com!q69no356070itb.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Fri, 1 Feb 2019 18:00:39 -0800 (PST) In-Reply-To: <62cfed2a-f9b8-4df4-be2f-af3b9343cc66@googlegroups.com> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=70.109.61.2; posting-account=QF6XPQoAAABce2NyPxxDAaKdAkN6RgAf NNTP-Posting-Host: 70.109.61.2 References: <987a6ff2-32d0-45a0-b90a-be9fbf1ff47b@googlegroups.com> <62cfed2a-f9b8-4df4-be2f-af3b9343cc66@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: Yet another gnat bug From: Jere Injection-Date: Sat, 02 Feb 2019 02:00:39 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Xref: reader01.eternal-september.org comp.lang.ada:55428 Date: 2019-02-01T18:00:39-08:00 List-Id: On Friday, February 1, 2019 at 4:26:29 PM UTC-5, George Shapovalov wrote: > One other note: at first build the compiler may complain about missing ob= j/dbg dir. Please just run: > mkdir -p obj/dbg=20 > from the project dir (not src, one level above it). >=20 > I have obj/ in .gitignore to prevent it tracking generated files (and git= tends to ignore the entire dir, not just its contents. At least my very sh= ort attempts to force it to ignore obj/* but not obj/ itself did not succee= d. I preferred the annoyance of running once the mkdir command over spendin= g more time trying to beat git when I set it up).=20 What I do is put a "special" .gitignore in the obj directory that says igno= re everything in this directory except for myself. I don't include the obj= directory in the top level .gitignore at all and rely on the special one i= nside the obj directory itself. The special .gitignore file looks like thi= s: * */ !.gitignore That's it, just 3 lines to say ignore everything in this directory, everyth= ing in any subdirectories, but don't ignore me. Git will then add this .gi= tignore to your tracked files, securing the obj directory.