diff options
| author | dundargoc <33953936+dundargoc@users.noreply.github.com> | 2022-08-02 12:32:57 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-08-02 12:32:57 +0200 |
| commit | 8ce7e7409f10f0a90ed8aa3f6f179c4b5d44eacb (patch) | |
| tree | dc7bcb32002aa0866cb6a7c6fe72dc3a8fc90979 /Makefile | |
| parent | c223875a65dd703e42956e064239369817faa0b2 (diff) | |
| download | rneovim-8ce7e7409f10f0a90ed8aa3f6f179c4b5d44eacb.tar.gz rneovim-8ce7e7409f10f0a90ed8aa3f6f179c4b5d44eacb.tar.bz2 rneovim-8ce7e7409f10f0a90ed8aa3f6f179c4b5d44eacb.zip | |
build: add formatting targets for c and lua files (#19488)
The targets will only format files that have been changed in current
branch compared to the master branch. This includes unstaged, staged and
committed files.
Add following make and cmake targets:
formatc - format changed c files
formatlua - format changed lua files
format - run formatc and formatlua
Remove scripts/uncrustify.sh as this deprecates it.
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -137,7 +137,7 @@ helphtml: | nvim build/runtime/doc/tags functionaltest functionaltest-lua unittest benchmark: | nvim $(BUILD_TOOL) -C build $@ -lintlua lintsh lintpy lintuncrustify lintc lintcfull check-single-includes generated-sources lintcommit lint: | build/.ran-cmake +lintlua lintsh lintpy lintuncrustify lintc lintcfull check-single-includes generated-sources lintcommit lint formatc formatlua format: | build/.ran-cmake $(CMAKE_PRG) --build build --target $@ test: functionaltest unittest @@ -174,4 +174,4 @@ $(DEPS_BUILD_DIR)/%: phony_force $(BUILD_TOOL) -C $(DEPS_BUILD_DIR) $(patsubst $(DEPS_BUILD_DIR)/%,%,$@) endif -.PHONY: test lintlua lintpy lintsh functionaltest unittest lint lintc clean distclean nvim libnvim cmake deps install appimage checkprefix lintcommit +.PHONY: test lintlua lintpy lintsh functionaltest unittest lint lintc clean distclean nvim libnvim cmake deps install appimage checkprefix lintcommit formatc formatlua format |