~netlandish/links-dev

links: Simple Makefile improvements v1 APPLIED

Peter Sanchez: 1
 Simple Makefile improvements

 1 files changed, 7 insertions(+), 7 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.code.netlandish.com/~netlandish/links-dev/patches/132/mbox | git am -3
Learn more about email & git

[PATCH links] Simple Makefile improvements Export this patch

Changelog-updated: Makefile for more friendly experience.
---
 Makefile | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/Makefile b/Makefile
index 08e6ff0..d04d249 100644
--- a/Makefile
+++ b/Makefile
@@ -13,7 +13,7 @@ ADMSRC:=$(shell find ./cmd/admin/ -name '*.go')
all: links links-api links-short links-list

links: $(LINKSRC)
	$(GO) build $(GOFLAGS) -ldflags "$(LDFLAGS)" -o $@ $(LINKSRC)
	rm -f $@ && $(GO) build $(GOFLAGS) -ldflags "$(LDFLAGS)" -o $@ $(LINKSRC)

clean:
	rm -f ./links ./links-api ./links-short ./links-list ./links-domains ./links-admin
@@ -25,21 +25,21 @@ test:
	$(GO) test ./... -p 1

links-api:
	$(GO) build $(GOFLAGS) -ldflags "$(LDFLAGS)" -o $@ $(APISRC)
	rm -f $@ && $(GO) build $(GOFLAGS) -ldflags "$(LDFLAGS)" -o $@ $(APISRC)

links-short:
	$(GO) build $(GOFLAGS) -ldflags "$(LDFLAGS)" -o $@ $(SHORTSRC)
	rm -f $@ && $(GO) build $(GOFLAGS) -ldflags "$(LDFLAGS)" -o $@ $(SHORTSRC)

links-list:
	$(GO) build $(GOFLAGS) -ldflags "$(LDFLAGS)" -o $@ $(LISTSRC)
	rm -f $@ && $(GO) build $(GOFLAGS) -ldflags "$(LDFLAGS)" -o $@ $(LISTSRC)

links-domains:
	$(GO) build $(GOFLAGS) -ldflags "$(LDFLAGS)" -o $@ $(DOMSRC)
	rm -f $@ && $(GO) build $(GOFLAGS) -ldflags "$(LDFLAGS)" -o $@ $(DOMSRC)

links-admin:
	$(GO) build $(GOFLAGS) -ldflags "$(LDFLAGS)" -o $@ $(ADMSRC)
	rm -f $@ && $(GO) build $(GOFLAGS) -ldflags "$(LDFLAGS)" -o $@ $(ADMSRC)

schema:
	cd api && $(GO) generate ./graph

.PHONY: all api
.PHONY: all links clean trans test links-api links-short links-list links-domains links-admin schema
-- 
2.47.2
Applied.

To git@git.code.netlandish.com:~netlandish/links
   65c83ec..c780076  master -> master