From 145762ebaab1b2332b7a8fcee92d8c0c4c82b527 Mon Sep 17 00:00:00 2001 From: norly Date: Wed, 20 Feb 2013 23:43:47 +0000 Subject: [PATCH] make install --- Makefile | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index cc16ea1..a767fe0 100644 --- a/Makefile +++ b/Makefile @@ -1,13 +1,21 @@ # Makefile, part of XGrabControl. # (c) 2011, en passant development. -SRCFILES=grab-replacement.c -SOFILE=libXGrabControl.so +SRCFILES = grab-replacement.c +SOFILE = libXGrabControl.so + +DESTDIR := /usr/local + all: $(SOFILE) $(SOFILE): $(SRCFILES) Makefile gcc -Wall -Wextra -shared -Os -o $(SOFILE) $(SRCFILES) +install: all + cp $(SOFILE) $(DESTDIR)/lib/ + cp XGrabControl $(DESTDIR)/bin/ + ln -s XGrabControl $(DESTDIR)/bin/noxg + clean: rm -f $(SOFILE) -- 2.30.2