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=ham autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,163994d4f34e92d0 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.213.68 with SMTP id nq4mr1564177pbc.6.1344318724779; Mon, 06 Aug 2012 22:52:04 -0700 (PDT) Path: g9ni2603284pbo.0!nntp.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!ctu-peer!news.nctu.edu.tw!goblin1!goblin.stu.neva.ru!news2.arglkargh.de!news.mixmin.net!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: how to tell gnatmake to send executables to a different directory when compiling multi source? Date: Mon, 30 Jul 2012 12:33:37 +0100 Organization: A noiseless patient Spider Message-ID: References: <214bbd15-f7cb-4710-a6a7-64f37923bf4e@googlegroups.com> <87wr1moexq.fsf@ludovic-brenta.org> <87sjcaoa08.fsf@ludovic-brenta.org> <87k3xlbvkz.fsf@ludovic-brenta.org> <0ddccceb-c5ef-408a-b336-7cd2cd272ff8@googlegroups.com> Mime-Version: 1.0 Injection-Info: mx04.eternal-september.org; posting-host="edf2659fbb8cb6d4b5f62db4b36ac1e6"; logging-data="29586"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/WJqukbBwr4zlA/uQOHSDuBAz26dnlfQo=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1 (darwin) Cancel-Lock: sha1:vDGibSDE9BlgzDTxr/hHp0nuCyg= sha1:Y+08hh9q5/Mgt1r7RSCSenrVA50= Content-Type: text/plain Date: 2012-07-30T12:33:37+01:00 List-Id: Ludovic Brenta writes: > Don't you see how wrong this approach is? > - The Makefile must call gcc -M to generate the dependencies and store > them in a file > - The Makefile *cannot* include the generated dependency file while it > runs > - therefore you must run make twice: (1) to generate the dependency info > and (2) to build using the dependency info. It's a while since I did this, but I'm pretty sure that (GNU) make knows that it has to re-read the generated dependency info.