# move some of the installation from cmake to zig build · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/6096dc5f94bf69cb73b0fc89d36bf125f7ff6467)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 6096dc5f94bf69cb73b0fc89d36bf125f7ff6467

Requested commit: 6096dc5f94bf69cb73b0fc89d36bf125f7ff6467

Commit: 6096dc5f94bf69cb73b0fc89d36bf125f7ff6467

Tree: 9fd47a9ae9ea9f73f9ca2b24867cdf6fc0450ec2

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
move some of the installation from cmake to zig build

This moves the installation of shipped source files from large
CMakeLists.txt lists to zig build recursive directory installation.

On my computer a cmake `make install` takes 2.4 seconds even when it has
to do nothing, and prints a lot of unnecessary lines to stdout that say
"up-to-date: [some file it is installing]".

After this commit, the default output of `make` is down to 1
second, and it does not print any junk to stdout. Further, a `make
install` is no longer required and `make` is sufficient.

This closes #2874.

It also closes #2585. `make` now always invokes `zig build` for
installing files and libuserland.a, and zig's own caching system makes
that go fast.

```

## Parents

- [7d9ee5d6d53011e9edc7ca10b76d64af807a833f](https://git.cafe/gitcafe/zig/commit/7d9ee5d6d53011e9edc7ca10b76d64af807a833f?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/6096dc5f94bf69cb73b0fc89d36bf125f7ff6467?format=markdown)
