summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornorly <ny-git@enpas.org>2013-02-20 23:43:47 +0000
committernorly <ny-git@enpas.org>2013-02-20 23:43:47 +0000
commit145762ebaab1b2332b7a8fcee92d8c0c4c82b527 (patch)
treec02d96e3a873b0f85872832e1632ddde539afa92
parent560737238e48791914d423c98323fffd94dd5b28 (diff)
make install
-rw-r--r--Makefile12
1 files 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)