Skip to content

Commit a8ba145

Browse files
mfe-a5sysmaxhelias
authored andcommitted
fix (Makefile): Add documentation for .editorconfig
1 parent 4273ec8 commit a8ba145

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

.editorconfig

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,3 @@ indent_style = tab
5555

5656
[*.*Caddyfile]
5757
indent_style = tab
58-
59-
[Makefile]
60-
indent_style = tab

docs/makefile.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,3 +95,16 @@ sf: ## List all Symfony commands or pass the parameter "c=" to run a given comma
9595
cc: c=c:c ## Clear the cache
9696
cc: sf
9797
```
98+
99+
## Adding and modifying jobs
100+
101+
Make sure to add this configuration to the [.editorconfig](/.editorconfig) file, so that it forces your editor to use tabs instead of spaces (Makefiles are not compatible with spaces by default).
102+
103+
```.editorconfig
104+
105+
[Makefile]
106+
indent_style = tab
107+
108+
```
109+
110+
If you still want to use space, you can configure the prefix in the Makefile itself. See [this answer on StackExchange](https://retrocomputing.stackexchange.com/a/20303).

0 commit comments

Comments
 (0)