aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: 74dd7bd14ad410e71933e89d4eccb3dc6d88eb50 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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