-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Achille Roussel <[email protected]>
- Loading branch information
1 parent
34891d7
commit 976efb6
Showing
5 changed files
with
5 additions
and
6 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,20 @@ | ||
GO ?= go | ||
|
||
TARGET = \ | ||
testdata/coroutine_generated.go \ | ||
testdata/testdata_generated.go | ||
testdata.source = testdata/coroutine.go testdata/testdata.go | ||
testdata.target = $(testdata.source:.go=_durable.go) | ||
|
||
test: clean generate | ||
$(GO) test ./... | ||
$(GO) test -tags durable ./... | ||
|
||
generate: coroc | ||
PATH="$$(pwd):$$PATH" $(GO) generate ./testdata | ||
$(GO) fmt $(TARGET) || exit 0 | ||
$(GO) fmt $(testdata.target) || exit 0 | ||
|
||
coroc: | ||
$(GO) build -o $@ ./cmd/coroc | ||
|
||
clean: | ||
$(RM) coroc $(TARGET) | ||
$(RM) coroc $(testdata.target) | ||
|
||
.PHONY: clean generate test |
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
File renamed without changes.
File renamed without changes.
File renamed without changes.