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,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.70.35.34 with SMTP id e2mr20600773pdj.6.1434725269874; Fri, 19 Jun 2015 07:47:49 -0700 (PDT) X-Received: by 10.182.43.227 with SMTP id z3mr159837obl.26.1434725269796; Fri, 19 Jun 2015 07:47:49 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!feeder.eternal-september.org!news.glorb.com!h15no5542033igd.0!news-out.google.com!kd3ni11327igb.0!nntp.google.com!h15no5542018igd.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Fri, 19 Jun 2015 07:47:49 -0700 (PDT) In-Reply-To: <86ioajaiyu.fsf@stephe-leake.org> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=74.203.194.21; posting-account=bXcJoAoAAAAWI5APBG37o4XwnD4kTuQQ NNTP-Posting-Host: 74.203.194.21 References: <888a3bd7-6ce8-4458-8725-8330680f48de@googlegroups.com> <86egl9do8p.fsf@stephe-leake.org> <8a492b13-7f08-4597-aa14-5aa8715850f5@googlegroups.com> <86ioajaiyu.fsf@stephe-leake.org> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: Emacs Ada mode with RTS From: Patrick Noffke Injection-Date: Fri, 19 Jun 2015 14:47:49 +0000 Content-Type: text/plain; charset=ISO-8859-1 Xref: news.eternal-september.org comp.lang.ada:26385 Date: 2015-06-19T07:47:49-07:00 List-Id: On Friday, June 19, 2015 at 9:09:01 AM UTC-5, Stephen Leake wrote: > Patrick Noffke writes: > > > Is there a way to make ada-mode's Check syntax > > or Build commands dependent on a rule (i.e. generating the config > > file) in my Makefile? > > I'm not sure what you are asking. > > When I use a Makefile, I put check and build targets in there; I never > use the Ada | Build menu. > > You can set the Ada | Build | Check command to run 'make check' in your .adp: > > check_cmd=make check > If I want to use the Ada | Build | Check syntax command to check that a single file compiles, then I would need to first ensure the config file is created with gprconfig (i.e. as a make dependency). How would the file name get passed to the Makefile? Do I need to grab the last command-line argument from within the Makefile, or is there another way? It's not that big of a deal right now -- I can just build the entire project as I'm editing to check my syntax. Thanks, Patrick