github.com/mit-dci/lit@v0.0.0-20221102210550-8c3d3b49f2ce/Makefile (about)

     1  GOBIN = $(shell pwd)
     2  GO ?= latest
     3  
     4  GO_BUILD_EX_ARGS ?=
     5  
     6  all: lit lit-af test
     7  
     8  .PHONY: lit lit-af test tests webui
     9  
    10  goget:
    11  	build/env.sh go get -v ./...
    12  
    13  lit: goget
    14  	build/env.sh go build ${GO_BUILD_EX_ARGS}
    15  	@echo "Done building."
    16  	@echo "Run \"$(GOBIN)/lit\" to launch lit."
    17  
    18  lit-af: goget
    19  	build/env.sh go build ${GO_BUILD_EX_ARGS} ./cmd/lit-af
    20  	@echo "Run \"$(GOBIN)/lit-af\" to launch lit-af."
    21  
    22  webui:
    23  	cd webui ; rm -rf node_modules/ ; npm install ; npm run build ; cd ..
    24  	@echo "Launch app from ./webui/dist/<your_dist>/litwebui"
    25  
    26  package:
    27  	build/releasebuild.sh clean
    28  	build/releasebuild.sh
    29  
    30  clean:
    31  	build/env.sh clean
    32  	build/releasebuild.sh clean
    33  	go clean .
    34  	go clean ./cmd/lit-af
    35  	rm -rf build/_workspace/
    36  	rm -f lit cmd/lit-af/lit-af lit-af
    37  
    38  test tests: lit
    39  	build/env.sh go test -v ./...
    40  ifeq ($(with-python), true)
    41  	cd test && mkdir -p _data && bash -c ./runtests.py
    42  endif