Make install dir customizable
This commit is contained in:
parent
88c27c9df8
commit
74b9fedbf1
1 changed files with 7 additions and 5 deletions
12
Makefile
12
Makefile
|
|
@ -1,7 +1,9 @@
|
|||
|
||||
LOLCAT_SRC = lolcat.c
|
||||
CENSOR_SRC = censor.c
|
||||
CFLAGS = -std=c11 -Wall
|
||||
LOLCAT_SRC := lolcat.c
|
||||
CENSOR_SRC := censor.c
|
||||
CFLAGS := -std=c11 -Wall
|
||||
|
||||
DESTDIR := /usr/local/bin
|
||||
|
||||
ifeq ($(shell uname -s),Darwin)
|
||||
LOLCAT_SRC += memorymapping/src/fmemopen.c
|
||||
|
|
@ -36,8 +38,8 @@ censor: $(CENSOR_SRC)
|
|||
gcc $(CFLAGS) -o $@ $^
|
||||
|
||||
install: lolcat censor
|
||||
install lolcat /usr/local/bin
|
||||
install censor /usr/local/bin
|
||||
install lolcat $(DESTDIR)/
|
||||
install censor $(DESTDIR)/
|
||||
|
||||
clean:
|
||||
rm -f lolcat lolcat-static.o lolcat-static censor censor-static.o censor-static
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue