blob: 2ec406a58ff35254e7f26ee29414ea513b988647 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
MAN != ls doc/*.[1-9]
EXEC != find -H . -follow -type f -perm -111 ! -path '*/.git/*'
IMAN != echo " $(MAN)" | sed -E 's, doc/, /usr/local/man/man1/,g'
IEXEC != echo " $(EXEC)" | sed -E 's, \./([^ ]*/)?, /usr/local/bin/,g'
install:
@echo Installing man pages...
@install -m 644 $(MAN) /usr/local/man/man1
@echo Installing executables...
@install $(EXEC) /usr/local/bin
@echo Rewriting shebangs...
@re! $(IEXEC)
uninstall:
@echo Uninstalling man pages...
@rm $(IMAN)
@echo Uninstalling executables...
@rm $(IEXEC)
build:
build */*.c
|