8000 Makefiles: make "all" the default target (following ancient convention) · mstetson/go-python@bd4c2a6 · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit bd4c2a6

Browse files
committed
Makefiles: make "all" the default target (following ancient convention)
1 parent 1237f1b commit bd4c2a6

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

cmd/go-python/Makefile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,10 @@ TARG=go-python
2323
GOFILES=\
2424
main.go
2525

26+
all: install
27+
2628
build:
2729
CGO_LDFLAGS=$(CGO_LDFLAGS) CGO_CFLAGS=$(CGO_CFLAGS) go build -compiler=$(GO_COMPILER) .
2830

2931
install:
3032
CGO_LDFLAGS=$(CGO_LDFLAGS) CGO_CFLAGS=$(CGO_CFLAGS) go install -compiler=$(GO_COMPILER) .
31-
32-
all: install
33-

pkg/python/Makefile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ ifeq ($(GO_COMPILER),)
2121
GO_COMPILER:="gc"
2222
endif
2323

24+
all: install
2425

2526
build:
2627
CGO_LDFLAGS=$(PY_CGO_LDFLAGS) CGO_CFLAGS=$(PY_CGO_CFLAGS) go build -compiler=$(GO_COMPILER) .
@@ -31,6 +32,4 @@ install:
3132
test:
3233
CGO_LDFLAGS=$(PY_CGO_LDFLAGS) CGO_CFLAGS=$(PY_CGO_CFLAGS) go test -compiler=$(GO_COMPILER) .
3334

34-
all: install
35-
3635
PHONY: build install

0 commit comments

Comments
 (0)
0