summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2013-06-27 15:04:21 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2013-06-27 15:04:21 +0200
commit35be37e65d53cb38af2ee7195e654aaf4d470c1c (patch)
tree67152c0e4fd7fba8717d3db9948f7f5eeb229b29 /Makefile
parentaffb2e277df4fcf015a687a8a50b7c4f06497d80 (diff)
downloadgapk-35be37e65d53cb38af2ee7195e654aaf4d470c1c.tar.bz2
gapk-35be37e65d53cb38af2ee7195e654aaf4d470c1c.tar.xz
build: add install target
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 7 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index f6269d1..a403ab6 100644
--- a/Makefile
+++ b/Makefile
@@ -6,6 +6,9 @@ GTK_LIBS = $(shell pkg-config $(GTK_PC) --libs)
CFLAGS = -g
CFLAGS += $(GTK_CFLAGS)
+prefix = /usr
+bindir = $(prefix)/bin
+
%.o: %.c
$(CC) $(CFLAGS) $(GTK_CFLAGS)-c $< -o $@
@@ -14,3 +17,7 @@ gapk: gapk.o
clean:
rm gapk *.o
+
+install: gapk
+ install -Dm755 gapk $(DESTDIR)$(bindir)/gapk
+