Makefile fix.
This commit is contained in:
parent
8346da5225
commit
67906a920a
5
Makefile
5
Makefile
@ -1,4 +1,5 @@
|
|||||||
# Install prefix
|
# Install destination and prefix
|
||||||
|
DESTDIR ?=
|
||||||
PREFIX ?= /usr/local
|
PREFIX ?= /usr/local
|
||||||
|
|
||||||
# Build flags
|
# Build flags
|
||||||
@ -12,7 +13,7 @@ backly: backly.c Makefile
|
|||||||
gcc $(FLAGS) -o backly backly.c
|
gcc $(FLAGS) -o backly backly.c
|
||||||
|
|
||||||
install: backly
|
install: backly
|
||||||
install -m 0755 backly $(PREFIX)/bin
|
install -Dm 0755 backly $(DESTDIR)/$(PREFIX)/bin/backly
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f backly
|
rm -f backly
|
||||||
|
Loading…
Reference in New Issue
Block a user