From 98839c2ce0ae4f5735939ded3fff22eda1b96a28 Mon Sep 17 00:00:00 2001 From: seanpringle Date: Mon, 27 Aug 2012 20:24:30 +1000 Subject: [PATCH] Makefile install target --- Makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Makefile b/Makefile index a61b64aa..dbe93ea5 100644 --- a/Makefile +++ b/Makefile @@ -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