EXEC != find -H . -follow -type f -perm -111 ! -path '*/.git/*'
IEXEC != echo " $(EXEC)" | sed -E 's, \./([^ ]*/)?, /usr/local/bin/,g'

install:
	@echo Installing man pages...
	@install -m 644 doc/*.[1-9] /usr/local/man/man1
	@echo Installing executables...
	@install $(EXEC) /usr/local/bin
	@echo Rewriting shebangs...
	@re! $(IEXEC)

build:
	build */*.c