comparison Makefile @ 34859:2bf152128d59

makefile: add target to apply clang-format in-place This makes it easy to reformat files after you finish editing them. Differential Revision: https://phab.mercurial-scm.org/D1167
author Augie Fackler <augie@google.com>
date Mon, 14 Sep 2015 14:52:20 -0400
parents 01c57eeb35cb
children c2695cbb5fb1
comparison
equal deleted inserted replaced
34858:85a2db47ad50 34859:2bf152128d59
119 $(MAKE) -f $(HGROOT)/contrib/Makefile.python PYTHONVER=$* PREFIX=$(HGPYTHONS)/$* python ) 119 $(MAKE) -f $(HGROOT)/contrib/Makefile.python PYTHONVER=$* PREFIX=$(HGPYTHONS)/$* python )
120 cd tests && $(HGPYTHONS)/$*/bin/python run-tests.py $(TESTFLAGS) 120 cd tests && $(HGPYTHONS)/$*/bin/python run-tests.py $(TESTFLAGS)
121 121
122 check-code: 122 check-code:
123 hg manifest | xargs python contrib/check-code.py 123 hg manifest | xargs python contrib/check-code.py
124
125 format-c:
126 clang-format --style file -i \
127 `hg files 'set:(**.c or **.h) and not "listfile:contrib/clang-format-blacklist"'`
124 128
125 update-pot: i18n/hg.pot 129 update-pot: i18n/hg.pot
126 130
127 i18n/hg.pot: $(PYFILES) $(DOCFILES) i18n/posplit i18n/hggettext 131 i18n/hg.pot: $(PYFILES) $(DOCFILES) i18n/posplit i18n/hggettext
128 $(PYTHON) i18n/hggettext mercurial/commands.py \ 132 $(PYTHON) i18n/hggettext mercurial/commands.py \