~netlandish/links-dev

This thread contains a patchset. You're looking at the original emails, but you may wish to use the patch review UI. Review patch
1

[PATCH links] Simple Makefile improvements

Details
Message ID
<20250423005358.17116-1-peter@netlandish.com>
Sender timestamp
1745348034
DKIM signature
missing
Download raw message
Patch: +7 -7
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
Details
Message ID
<D9DM09074LU8.CBFAUJ789JV@netlandish.com>
In-Reply-To
<20250423005358.17116-1-peter@netlandish.com> (view parent)
Sender timestamp
1745348339
DKIM signature
missing
Download raw message
Applied.

To git@git.code.netlandish.com:~netlandish/links
   65c83ec..c780076  master -> master
Reply to thread Export thread (mbox)