opentofu/Makefile
Sander van Harmelen 83c760fcb3 core: refactoring the way sets work internally v2
This is a refactored solution for PR #616. Functionally this is still
the same change, but it’s implemented a lot cleaner with less code and
less changes to existing parts of TF.
2014-12-12 23:21:20 +01:00

35 lines
665 B
Makefile

TEST?=./...
default: test
bin: config/y.go
@sh -c "'$(CURDIR)/scripts/build.sh'"
dev: config/y.go
@TF_DEV=1 sh -c "'$(CURDIR)/scripts/build.sh'"
test: config/y.go
TF_ACC= go test $(TEST) $(TESTARGS) -timeout=10s -parallel=4
testacc: config/y.go
@if [ "$(TEST)" = "./..." ]; then \
echo "ERROR: Set TEST to a specific package"; \
exit 1; \
fi
TF_ACC=1 go test $(TEST) -v $(TESTARGS) -timeout 45m
testrace: config/y.go
TF_ACC= go test -race $(TEST) $(TESTARGS)
updatedeps: config/y.go
go get -u -v ./...
config/y.go: config/expr.y
cd config/ && \
go tool yacc -p "expr" expr.y
clean:
rm config/y.go
.PHONY: bin clean default test updatedeps