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.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!aioe.org!.POSTED!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: Two questions about gpr files Date: Tue, 8 Apr 2014 11:38:08 +0200 Organization: cbb software GmbH Message-ID: References: <8561mktfb1.fsf@stephe-leake.org> Reply-To: mailbox@dmitry-kazakov.de NNTP-Posting-Host: AuYlnUSfTZrfhAkRjyySpQ.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org User-Agent: 40tude_Dialog/2.0.15.1 X-Notice: Filtered by postfilter v. 0.8.2 Xref: news.eternal-september.org comp.lang.ada:19191 Date: 2014-04-08T11:38:08+02:00 List-Id: On Tue, 08 Apr 2014 03:07:30 -0500, Stephen Leake wrote: > use a Makefile, and or a configure script. Never ever use Makefile. If you want your project stay useful. Make a mental experiment. Let you download any project that uses Makefile, including Ada projects. What are chances that you will be able to compile it? Without ./configure it is less than 10%. With ./configure it is less than 1%. For anything complex (e.g. GtkAda) it is plain 0%. The best way to do conditional "with" (the method suggested by Simon does not work, I tried it before), is to include the project always but make it empty for the targets it does not support (e.g. no source files). -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de