Permalink
Browse files

Add a minimal 'make install' target.

  • Loading branch information...
nelhage committed Jan 28, 2011
1 parent c5c9e51 commit 51d380af86031003c728b25b7557583c29152a24
Showing with 5 additions and 0 deletions.
  1. +5 −0 Makefile
View
@@ -1,6 +1,7 @@
CFLAGS=-Wall -Werror -D_GNU_SOURCE -g
OBJS=reptyr.o ptrace.o attach.o
+PREFIX=/usr/local
all: reptyr
@@ -12,3 +13,7 @@ ptrace.o: ptrace.h $(wildcard arch/*.h)
clean:
rm -f reptyr $(OBJS)
+
+install: reptyr
+ install -d -m 766 $(DESTDIR)$(PREFIX)/bin/
+ install -m 766 reptyr $(DESTDIR)$(PREFIX)/bin/reptyr

0 comments on commit 51d380a

Please sign in to comment.