aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/api/buffer.c
diff options
context:
space:
mode:
authordundargoc <gocdundar@gmail.com>2023-12-31 16:54:09 +0100
committerdundargoc <33953936+dundargoc@users.noreply.github.com>2024-01-01 11:04:41 +0100
commit7cb29a572b365a5184defeec477271bd562b5076 (patch)
tree92e0f95015576e6c98b0208ece73fb2d7b88e42d /src/nvim/api/buffer.c
parent6fa0f303d7f0823bfc5ba6cc7b4e7a7cd76143ac (diff)
downloadrneovim-7cb29a572b365a5184defeec477271bd562b5076.tar.gz
rneovim-7cb29a572b365a5184defeec477271bd562b5076.tar.bz2
rneovim-7cb29a572b365a5184defeec477271bd562b5076.zip
build: ensure `make clean` doesn't remove source files
Adding a file to `OUTPUT` in `add_custom_command` marks that file as `GENERATED` in cmake, and will thus be removed when running the `clean` target. As cmake doesn't have a good way to mark that certain files should not be removed, we instead "lie" to it by omitting the files we want to keep from `OUTPUT`. This hack only works as long as there aren't any other files that depend on the generated files we want to keep, which currently seems to be the case. If this assumption changes in the future, then we need to separate the parts that are generated and the parts that are not as to prevent an infinite dependency chain.
Diffstat (limited to 'src/nvim/api/buffer.c')
0 files changed, 0 insertions, 0 deletions