Re: Emacs makefile mode - Commented text turns tab pink
Basile STARYNKEVITCH <[email protected]>
| Newsgroups | gmane.emacs.help |
|---|---|
| Message-ID | <[email protected]> |
On Fri, 2026-04-24 at 13:08 -0400, [email protected] wrote: > Heime <[email protected]> writes: > > > > > I made a makefile with some comments. In Emacs the tab of the > > > > comment turns pink. An I doing something wrong? > > > > > > > > $(trgdir)/antares.info: $(srcdir)/antares.texi > > > > ## Make any missing parent directories > > > > mkdir -p $(trgdir) > > > > $(MAKEINFO) $(MAKEINFOFLAGS) -o $@ $< > > > > > > make-mode.el says: > > > > > > ;; Highlight shell comments that Make treats as > > > commands, > > > ;; since these can fool people. > > > ("^\t+#" 0 makefile-space t) > > > > > > > Make treats the comment "## Make any missing parent directories" > > as a command? > > > > ‘make-mode’ is giving you a warning. Alternatively, use the GNU guile enhanced GNU make or some other builder program. I know about ninja-build.org and https://github.com/ocaml-omake/omake and https://snakemake.readthedocs.io Observe that parts of your makefile could be machine generated and included. Good luck -- Basile STARYNKEVITCH <[email protected]> 8 rue de la Faïencerie http://starynkevitch.net/Basile/ 92340 Bourg-la-Reine https://github.com/bstarynk France https://github.com/RefPerSys/RefPerSys https://orcid.org/0000-0003-0908-5250