Makefile: allow to change installation path prefix
This commit is contained in:
parent
9093211ae3
commit
1f9eab3a7c
1 changed files with 4 additions and 2 deletions
6
Makefile
6
Makefile
|
@ -1,3 +1,5 @@
|
||||||
|
PREFIX=/usr
|
||||||
|
|
||||||
.PHONY: main test install uninstall clean
|
.PHONY: main test install uninstall clean
|
||||||
|
|
||||||
SRCFILES := $(shell find . -type f -name "*.c")
|
SRCFILES := $(shell find . -type f -name "*.c")
|
||||||
|
@ -14,10 +16,10 @@ test: iast
|
||||||
$(CC) -MMD -MP -c $< -o $@
|
$(CC) -MMD -MP -c $< -o $@
|
||||||
|
|
||||||
install:
|
install:
|
||||||
install -m 0755 iast /usr/bin
|
install -m 0755 iast $(PREFIX)/bin
|
||||||
|
|
||||||
uninstall:
|
uninstall:
|
||||||
rm -f /usr/bin/iast
|
rm -f $(PREFIX)/bin/iast
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
$(RM) iast *.o *.d
|
$(RM) iast *.o *.d
|
||||||
|
|
Loading…
Reference in a new issue