Added generate as a make dependency for make build

Clarify docs on building

Signed-off-by: kolaente <k@knt.li>
This commit is contained in:
kolaente 2020-02-15 11:35:24 +01:00
parent caf91d1904
commit 7e42724439
Signed by untrusted user: konrad
GPG Key ID: F40E70337AB24C9B
2 changed files with 5 additions and 1 deletions

View File

@ -96,7 +96,7 @@ fmt-check:
fi;
.PHONY: build
build: $(EXECUTABLE)
build: generate $(EXECUTABLE)
.PHONY: generate
generate:

View File

@ -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}`.