Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add a minimal 'make install' target.

  • Loading branch information...
commit 51d380af86031003c728b25b7557583c29152a24 1 parent c5c9e51
@nelhage authored
Showing with 5 additions and 0 deletions.
  1. +5 −0 Makefile
View
5 Makefile
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.