Skip to content

Commit

Permalink
chore: add simple utility to makefile that allows to estimate complet…
Browse files Browse the repository at this point in the history
…ion [skip ci]
  • Loading branch information
swistakm committed Nov 3, 2016
1 parent f2b4c1d commit e1c21f1
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,13 @@ rebuild: clean build
.PHONY: livedoc
livedoc: build
sphinx-autobuild doc/source/ doc/build/html


.PHONY: completion
completion:
@# This escaping is crazy. But it works.
$(eval $@_ALL_METHODS := grep imgui/cimgui.pxd -ve '\(^\s*\#\)\|\(^$$$$\)' | wc -l | tr -d ' ' )
$(eval $@_DONE_METHODS := grep imgui/cimgui.pxd -ve '\(^\s*\#\)\|\(^$$$$\)' | grep ✓ | wc -l | tr -d ' ' )

@echo Heuristic completion status: $$(${$@_DONE_METHODS}) / $$(${$@_ALL_METHODS})

0 comments on commit e1c21f1

Please sign in to comment.