Skip to content

Commit 9193486

Browse files
Add ability for local makefile with personal customizations that wouldnt affect remote repo (#35836)
This would allow developers to keep a local file that'd add personal makefile targets for niche convenience customization without having to have the git workspace polluted with uncommitted changes. --------- Signed-off-by: techknowlogick <techknowlogick@gitea.com>
1 parent c12bc4a commit 9193486

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@
88
/vendor/** -text -eol linguist-vendored
99
/web_src/js/vendor/** -text -eol linguist-vendored
1010
Dockerfile.* linguist-language=Dockerfile
11+
Makefile.* linguist-language=Makefile

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,3 +127,6 @@ prime/
127127

128128
# Ignore worktrees when working on multiple branches
129129
.worktrees/
130+
131+
# A Makefile for custom make targets
132+
Makefile.local

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,10 @@ TEST_MSSQL_DBNAME ?= gitea
198198
TEST_MSSQL_USERNAME ?= sa
199199
TEST_MSSQL_PASSWORD ?= MwantsaSecurePassword1
200200

201+
# Include local Makefile
202+
# Makefile.local is listed in .gitignore
203+
sinclude Makefile.local
204+
201205
.PHONY: all
202206
all: build
203207

0 commit comments

Comments
 (0)