$ find .
cmd/countrychange/main.go
cmd/visitpoints/main.go
countrychange/1.go
countrychange/2.go
visitpoints/3.go
visitpoints/4.go
Makefile
-
-
Save moul/4f0580ae940b2956043bab78a82a60c2 to your computer and use it in GitHub Desktop.
Makefile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.PHONY: countrychange | |
countrychange: | |
go install ./cmd/$@ | |
.PHONY: visitpoints | |
visitpoints: | |
go install ./cmd/$@ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PACKAGES := countrychange visitpoints | |
.PHONY: $(PACKAGES) | |
$(PACKAGES): | |
go install ./cmd/$@ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PACKAGES := $(notdir $(wildcard ./cmd/*)) | |
.PHONY: $(PACKAGES) | |
$(PACKAGES): | |
go install ./cmd/$@ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PACKAGES := $(notdir $(wildcard ./cmd/*)) | |
SOURCES := $(find . -name "*.go") | |
.PHONY: $(PACKAGES) | |
$(PACKAGES): $(SOURCES) | |
go install ./cmd/$@ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment