Skip to content

Commit

Permalink
chore: make contribs/ Makefile dynamic (#2318)
Browse files Browse the repository at this point in the history
Continues #2013

> People should focus on their contributions in the `contribs/MYFOLDER`
without updating a shared `Makefile` + `.github/contribs/*.yml`.

The CI part has been completed in #2040.
This pull request handles the Makefile portion.

---------

Signed-off-by: moul <94029+moul@users.noreply.github.com>
  • Loading branch information
moul authored Jul 4, 2024
1 parent b696a09 commit da59516
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 1 deletion.
2 changes: 1 addition & 1 deletion contribs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ help:
@echo "Available make commands:"
@cat Makefile | grep '^[a-z][^:]*:' | cut -d: -f1 | sort | sed 's/^/ /'

programs=gnodev gnofaucet
programs=$(wildcard */)

# command to run dependency utilities, like goimports.
rundep=go run -modfile ../misc/devdeps/go.mod
Expand Down
6 changes: 6 additions & 0 deletions contribs/gnofaucet/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,9 @@ install:
.PHONY: build
build:
go build -o build/gnofaucet .

test:
@echo "XXX: add tests"

lint:
@echo "XXX: add lint"
8 changes: 8 additions & 0 deletions contribs/gnokeykc/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
install:
go install .

test:
@echo "XXX: add tests"

lint:
@echo "XXX: add lint"
8 changes: 8 additions & 0 deletions contribs/gnomd/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
install:
go install .

test:
@echo "XXX: add tests"

lint:
@echo "XXX: add lint"

0 comments on commit da59516

Please sign in to comment.