Debian Codegraph @

internal/stack/testdata/Makefile

raw
1 .DEFAULT_GOAL := all
2
3 GO_VERSION = $(shell go version | cut -d' ' -f3)
4
5 # Append to this list to add new stacks.
6 STACKS =
7
8 # In Go 1.21, the output format was changed slightly.
9 #
10 # Generate a 1.20 version of the output
11 # only if we're running on Go 1.20.
12 ifneq (,$(findstring go1.20,$(GO_VERSION)))
13 STACKS += http.go1.20.txt
14 http.go1.20.txt: http.go
15 go run $< > $@
16 else
17 STACKS += http.txt
18 http.txt: http.go
19 go run $< > $@
20 endif
21
22 STACKS += http.tracebackancestors.txt
23 http.tracebackancestors.txt: http.go
24 GODEBUG=tracebackancestors=10 go run $< > $@
25
26 .PHONY: all
27 all: $(STACKS)