diff --git a/Makefile b/Makefile index f3ba1865cdb..9d53e7ff227 100644 --- a/Makefile +++ b/Makefile @@ -96,7 +96,7 @@ fmt-check: fi; .PHONY: build -build: $(EXECUTABLE) +build: generate $(EXECUTABLE) .PHONY: generate generate: diff --git a/docs/content/doc/setup/build-from-source.md b/docs/content/doc/setup/build-from-source.md index 72527d9ff92..2df45071a71 100644 --- a/docs/content/doc/setup/build-from-source.md +++ b/docs/content/doc/setup/build-from-source.md @@ -18,6 +18,10 @@ All libraries are bundeled inside the repo in the `vendor/` folder, so all it bo 3. Clone the repo with `git clone https://code.vikunja.io/api` 3. Run `make build` in the source of this repo. This will build a binary in the root of the repo which will be able to run on your system. +*Note:* Static ressources such as email templates are built into the binary. +For these to work, you may need to run `make generate` before building the vikunja binary. +When builing entirely with `make`, you dont need to do this, `make generate` will be run automatically when running `make build`. + # Build for different architectures To build for other platforms and architectures than the one you're currently on, simply run `make release` or `make release-{linux|windows|darwin}`.