diff --git a/Makefile b/Makefile index d7b12be..29fe599 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -.PHONY: clean build test run fmt tidy install-tools generate execute-binary +.PHONY: clean build test run fmt tidy install-tools generate generate-api generate-db execute-binary BINARY_NAME=./bin/scribe-server @@ -35,7 +35,17 @@ install-tools: # Create or update the generated source code. generate: - go generate -x ./... + @$(MAKE) generate-api + @$(MAKE) generate-db + +# Create or update the generated source code for the 'api' package. +generate-api: + go generate -x ./api/... + @$(MAKE) tidy + +# Create or update the generated source code for the 'db' package. +generate-db: + go generate -x ./db/... @$(MAKE) tidy # Execute the binary for the project. diff --git a/README.md b/README.md index ac3722e..01fb4f5 100644 --- a/README.md +++ b/README.md @@ -154,7 +154,7 @@ The following table shows the supported languages and the amount of data availab 2024 -- Feb: [Presentation slides](https://docs.google.com/presentation/d/1lMhYiQx1R99SVGhbikUGjOVaFgPPASvbzM2Bsu3NXSg/edit?usp=sharing) for Scribe's participation at the [Wikimedia Tech Safari Program](https://www.mediawiki.org/wiki/Wikimedia_Tech_Safari_Program) +- February: [Presentation slides](https://docs.google.com/presentation/d/1lMhYiQx1R99SVGhbikUGjOVaFgPPASvbzM2Bsu3NXSg/edit?usp=sharing) for Scribe's participation at the [Wikimedia Tech Safari Program](https://www.mediawiki.org/wiki/Wikimedia_Tech_Safari_Program) 2023