aboutsummaryrefslogtreecommitdiffhomepage
path: root/Makefile
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2012-11-15 20:00:32 +0100
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2012-11-15 20:00:32 +0100
commit8c27f0437054497360a8358c5e3fb516f1eaa996 (patch)
treeb6bcc2cf40d35d3e3d9c4428eb4140417f8151cb /Makefile
parent51e123544bff3ca0bdd8f6ba6a1c507b57071ca4 (diff)
install target
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 642376f..9780154 100644
--- a/Makefile
+++ b/Makefile
@@ -1,9 +1,11 @@
INTERFACE?=GTK
+PREFIX?=/usr/local
GOB2:=gob2
CC:=gcc
CXX:=g++
+INSTALL:=install
GLIB_CFLAGS:=$(shell pkg-config --cflags glib-2.0)
GLIB_LDFLAGS:=$(shell pkg-config --libs glib-2.0)
@@ -53,6 +55,9 @@ endif
%.c %.h %-private.h : %.gob
$(GOB2) $<
+install: all
+ $(INSTALL) sciteco $(PREFIX)/bin
+
clean:
$(RM) sciteco *.o *.a
$(RM) gtk-info-popup*.[ch]