github.com/usbarmory/tamago@v0.0.0-20240508072735-8612bbe1e454/_dev/Makefile.import-report (about)

     1  GOARCH ?= "arm"
     2  
     3  .PHONY : prepare report imports
     4  
     5  all: imports prepare report
     6  
     7  imports:
     8  	@echo "==> Create import list"
     9  	go list std | grep -v internal | grep -v "^vendor" > imports
    10  
    11  prepare:
    12  	@echo "==> Create test directory"
    13  	mkdir -p tests
    14  	@echo "==> Build report program using $(go env GOROOT)"
    15  	go build gen_import_report.go
    16  
    17  report:
    18  	@echo "==> Launch report program using $(go env GOROOT)"
    19  	GOOS=tamago GOARCH=$(GOARCH) ./gen_import_report
    20  	rm -f main
    21  
    22  clean:
    23  	rm -rf tests imports gen_import_report import_report.md main