Merge pull request #1 from djthorpe/djthorpe-20221218

Updated makefile rules
pull/287/head
David Thorpe 3 years ago committed by GitHub
commit c68c19d0eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -17,10 +17,10 @@ test: model-small whisper
examples: $(EXAMPLES_DIR) examples: $(EXAMPLES_DIR)
model-small: examples/go-model-download model-small: mkdir examples/go-model-download
@${BUILD_DIR}/go-model-download -out models small.en @${BUILD_DIR}/go-model-download -out models small.en
$(EXAMPLES_DIR): clean mkdir $(EXAMPLES_DIR): mkdir whisper
@echo Build example $(notdir $@) @echo Build example $(notdir $@)
@go build ${BUILD_FLAGS} -o ${BUILD_DIR}/$(notdir $@) ./$@ @go build ${BUILD_FLAGS} -o ${BUILD_DIR}/$(notdir $@) ./$@

@ -50,6 +50,8 @@ func main() {
In order to build, you need to have the Go compiler installed. You can get it from [here](https://golang.org/dl/). Run the tests with: In order to build, you need to have the Go compiler installed. You can get it from [here](https://golang.org/dl/). Run the tests with:
```bash ```bash
git clone https://github.com/ggerganov/whisper.cpp.git
cd whisper.cpp/bindings/go
make test make test
``` ```

Loading…
Cancel
Save