~dricottone/parcels

df2d62120dae0cceae1cc0fa59e9d26cd445e608 — Dominic Ricottone 2 years ago 75aedb8 v1.0.0
Makefile updates
1 files changed, 10 insertions(+), 2 deletions(-)

M Makefile
M Makefile => Makefile +10 -2
@@ 1,4 1,6 @@
INSTALL_DIR?=/usr/local/bin
URL_ICANN=https://data.iana.org/TLD/tlds-alpha-by-domain.txt
GO_FILES=$(shell find -name '*.go')

build/top-level-domains.txt:
	curl -o build/top-level-domains.txt $(URL_ICANN)


@@ 17,7 19,13 @@ regexp.go: build/top-level-domains.txt
clean:
	rm -f parcels regexp.go go.sum

.PHONY: build
build: regexp.go
parcels: $(GO_FILES) regexp.go
	go build

.PHONY: build
build: parcels

.PHONY: install
install: parcels
	install -m755 parcels $(INSTALL_DIR)/parcels