Added install target to Makefile.
This commit is contained in:
parent
dbaf9f0223
commit
1190c30604
6
Makefile
6
Makefile
@ -16,6 +16,7 @@
|
||||
|
||||
CC=gcc
|
||||
DEBUG=0
|
||||
PREFIX=/usr/local
|
||||
INCFLAGS=`pkg-config x11 --cflags`
|
||||
LDFLAGS=`pkg-config x11 --libs`
|
||||
CFLAGS=$(INCFLAGS) -std=c99 -Wall -Wextra -Wfatal-errors -Werror
|
||||
@ -34,7 +35,10 @@ endif
|
||||
tinyclip: $(OBJS)
|
||||
$(CC) -o $@ $^ $(LDFLAGS)
|
||||
|
||||
.PHONY: clean
|
||||
.PHONY: clean install
|
||||
|
||||
clean:
|
||||
$(RM) $(OBJS)
|
||||
|
||||
install: tinyclip
|
||||
install -m 755 tinyclip $(PREFIX)/bin/
|
||||
|
Loading…
Reference in New Issue
Block a user