-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile
35 lines (28 loc) · 950 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Makefile
EXCLUDE_MODULES := $(shell cat buildignore.ini | grep -v '^;' | paste -sd '|' -)
.PHONY: default all list liste showem help
default:
@echo "Building packages with exclusions..."
@go list ./... | grep -vE "$(EXCLUDE_MODULES)" | xargs go build
all:
@echo "Building all packages..."
@go list ./... | xargs go build
list:
@echo "List all packages..."
@go list ./...
liste:
@echo "List packages with exclusions..."
@go list ./... | grep -vE "$(EXCLUDE_MODULES)"
showem:
@echo "Show EXCLUDE_MODULES:"
@echo "$(EXCLUDE_MODULES)"
help:
@echo "Makefile for Go project"
@echo ""
@echo "Targets:"
@echo " default - Build packages except those matching patterns in .buildignore"
@echo " all - Build all packages without any exclusions"
@echo " list - List packages all"
@echo " liste - List packages with exclusions"
@echo " showem - Show EXCLUDE_MODULES"
@echo " help - Show this help message"