Allow per-user local customizations of makefile

Allow users to customize their makefiles by adding custom
targets/variables without checking them in.
This commit is contained in:
Mahmood Ali
2019-08-13 10:12:57 -04:00
parent 4e80282bd1
commit b3d2c87216
2 changed files with 4 additions and 0 deletions

1
.gitignore vendored
View File

@@ -60,6 +60,7 @@ nomad_linux_amd64
nomad_darwin_amd64
TODO.md
codecgen-*.generated.go
GNUMakefile.local
.terraform
*.tfstate*

View File

@@ -51,6 +51,9 @@ ifeq (FreeBSD,$(THIS_OS))
ALL_TARGETS += freebsd_amd64
endif
# include per-user customization after all variables are defined
-include GNUMakefile.local
pkg/darwin_amd64/nomad: $(SOURCE_FILES) ## Build Nomad for darwin/amd64
@echo "==> Building $@ with tags $(GO_TAGS)..."
@CGO_ENABLED=1 GOOS=darwin GOARCH=amd64 \