Permalink
Browse files

build: Add an 'install' target

Signed-off-by: Jason S. McMullan <jason.mcmullan@netronome.com>
  • Loading branch information...
1 parent cd1449a commit 7433149e5aa0e9e20e6d1fcececa0c2fe3bb086a Jason S. McMullan committed May 2, 2011
Showing with 7 additions and 1 deletion.
  1. +7 −1 Makefile
View
@@ -1,5 +1,7 @@
# Standard Unix
+DESTDIR ?= /usr/local
+
TARGET = vlink
DIR = objects
@@ -12,6 +14,10 @@ LD = gcc
LDOUT = -o $(DUMMYVARIABLE) # produces the string "-o "
LDOPTS =
LIBS =
-
+INSTALL = install
include make.rules
+
+install: vlink vlink.pdf
+ $(INSTALL) -D vlink $(DESTDIR)/bin/vlink
+ $(INSTALL) -D vlink.pdf $(DESTDIR)/share/doc/vlink/vlink.pdf

0 comments on commit 7433149

Please sign in to comment.