--- foo/Makefile.orig 2013-04-16 10:25:18.837249297 -0400 +++ foo/Makefile 2013-04-16 10:28:32.113926986 -0400 @@ -24,7 +24,7 @@ CFLAGS=-Wall -Winline -O2 -g $(BIGFILES) # Where you want it installed when you do 'make install' -PREFIX=/usr/local +PREFIX=$(BASEDIR)/system OBJS= blocksort.o \