Makefile install target

This commit is contained in:
seanpringle 2012-08-27 20:24:30 +10:00
parent 8bcc742df1
commit 98839c2ce0
1 changed files with 5 additions and 0 deletions

View File

@ -1,5 +1,7 @@
CFLAGS?=-Wall -O2
LDADD?=$(shell pkg-config --cflags --libs x11 xinerama x11 xft)
PREFIX?=$(DESTDIR)/usr
BINDIR?=$(PREFIX)/bin
all: normal
@ -9,5 +11,8 @@ normal:
debug:
$(CC) $(CFLAGS) -Wunused-parameter -g -DDEBUG $(LDADD) -o simpleswitcher-debug simpleswitcher.c
install:
install -Dm 755 simpleswitcher $(BINDIR)/simpleswitcher
clean:
rm -f simpleswitcher simpleswitcher-debug