Commit Diff


commit - 7fd8efc3907fb2d73b5cdf8686daa1724903d9d8
commit + d27e2808427887d6ed81e2f7c07654b9da564789
blob - a947cb97390e8ab7c334c3689e7494440aa521fd
blob + 86d9b2939a7252bb2d1815ff0b425881b766105f
--- Makefile
+++ Makefile
@@ -1,4 +1,5 @@
 VERSION = 0.1
+PREFIX = /usr/local
 MY_CFLAGS = -Wall -Wextra -DVERSION=\"${VERSION}\" ${CFLAGS}
 LIBS = -lutil -lncurses
 
@@ -10,5 +11,9 @@ run: apmtop
 clean:
 	rm -f apmtop *.core
 
+install:
+	mkdir -p ${DESTDIR}${PREFIX}/bin
+	cp -f apmtop ${DESTDIR}${PREFIX}/bin/
+
 apmtop: apmtop.c
 	${CC} -o $@ apmtop.c ${MY_CFLAGS} ${LIBS}