Skip to content

Commit

Permalink
fix (Makefile): Add documentation for .editorconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
mfe-a5sys authored and maxhelias committed Feb 11, 2025
1 parent 4273ec8 commit a8ba145
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
3 changes: 0 additions & 3 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,3 @@ indent_style = tab

[*.*Caddyfile]
indent_style = tab

[Makefile]
indent_style = tab
13 changes: 13 additions & 0 deletions docs/makefile.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,3 +95,16 @@ sf: ## List all Symfony commands or pass the parameter "c=" to run a given comma
cc: c=c:c ## Clear the cache
cc: sf
```

## Adding and modifying jobs

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).

```.editorconfig

[Makefile]
indent_style = tab

```

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 comments on commit a8ba145

Please sign in to comment.