make install
authornorly <ny-git@enpas.org>
Wed, 20 Feb 2013 23:43:47 +0000 (23:43 +0000)
committernorly <ny-git@enpas.org>
Wed, 20 Feb 2013 23:43:47 +0000 (23:43 +0000)
Makefile

index cc16ea13c47a03fa93e1458f45c3e113ec70a3f8..a767fe010fb7bedbb94956b3e6a0be0e363e3898 100644 (file)
--- 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)