projects
/
XGrabControl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
5607372
)
make install
author
norly
<ny-git@enpas.org>
Wed, 20 Feb 2013 23:43:47 +0000
(23:43 +0000)
committer
norly
<ny-git@enpas.org>
Wed, 20 Feb 2013 23:43:47 +0000
(23:43 +0000)
Makefile
patch
|
blob
|
history
diff --git
a/Makefile
b/Makefile
index cc16ea13c47a03fa93e1458f45c3e113ec70a3f8..a767fe010fb7bedbb94956b3e6a0be0e363e3898 100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-1,13
+1,21
@@
# Makefile, part of XGrabControl.
# (c) 2011, en passant development.
# 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)
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)
clean:
rm -f $(SOFILE)