Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [makefile-mode]

The tag has no usage guidance.

0
votes
1answer
43 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
31 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
105 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
868 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
1k 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
945 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 ...
3
votes
0answers
470 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
379 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 ...
9
votes
2answers
985 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:= \ ...