11

In this https://github.com/kubernetes/helm/blob/master/Makefile there are targets with a dot in front of them. What is this convention for ?

.PHONY: all all: build .PHONY: build build: GOBIN=$(BINDIR) $(GO) install $(GOFLAGS) -tags '$(TAGS)' -ldflags '$(LDFLAGS)' k8s.io/helm/cmd/... 

1 Answer 1

15

The special rule .PHONY is used to specify that the target is not a file. Common uses are clean and all. This way it won't conflict if you have files named clean or all.

Here is a link to a section on this topic in the GNU make manual

0

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.