We’re rewarding the question askers & reputations are being recalculated! Read more.

Questions tagged [makefile-mode]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
207 views

Makefile layer in spacemacs

I've searched all over internet, but couldn't find how can I invoke make from spacemacs with a keybinding (not in shell window). All I found was this: @agriffis on gitter said the following Aron ...
0
votes
1answer
36 views

extend/customize Makefile syntax table

I work with a Makefile-like infrastructure that allows having lists as variables and appending values to them. For this, the += operator is used. However, I'm having incorrect highlighting using this ...
1
vote
0answers
128 views

Smarter compile in emacs

I often got to work with projects organized as follows: src/ include/ ... Makefile Is there a way to teach emacs' "compile" function to always use that top-level Makefile regardless which file I'...
0
votes
1answer
1k views

How to have emacs recognize Makefile as a prefix for makefile-mode?

I figured the following would tell emacs to recognize files starting with "Makefile" and start makefile-mode: (add-to-list 'auto-mode-alist '("\\`Makefile" . makefile-mode)) The \\` indicates the ...
3
votes
0answers
2k views

Indentation in makefile: alignment in multi-line assignments

What is the best solution for writing Makefile, GNU Makefile specifically? For example: FILES:= file0.cpp \ file1.cpp \ file2.cpp \ fileYetAnother....
1
vote
2answers
1k views

Bind the make command to a shortcut

I use Emacs under Ubuntu. I would like to bind the make command to a shortcut, so that makefile could be launched. If the compilation fails, I would the error message to be shown in a sub-window or ...
4
votes
0answers
508 views

How to make indent-region keep the TAB in Makefile buffer?

A very simple Makefile: all: gcc -o hello hello.c And I already set: (add-hook 'before-save-hook '(lambda () (delete-trailing-whitespace) ;; indent the whole buffer ...
5
votes
1answer
425 views

Why are leading spaces colored before comments in makefile-mode?

In Makefile mode, leading spaces are fontified in makefile-space face (bright pink without customization), when there is no other text on the line. It seems to indicate incomplete lines, and makes ...
11
votes
3answers
1k views

Customizing indentation in makefile mode?

In my makefiles, I prefer the following indentation for continuation lines: FILES:= \ file1.cpp \ file2.cpp \ fileYetAnother.cpp LIBS:= \ ...