--- Makefile.orig 2014-06-20 14:07:17.225595274 +0800 +++ Makefile 2014-06-20 14:07:25.329596116 +0800 @@ -9,7 +9,7 @@ LDFLAGS += -pipe -L. all: libsmacker.so install: libsmacker.so - cp libsmacker.so ${PREFIX}/lib/libsmacker.so + cp libsmacker.so $(DESTDIR)${PREFIX}/lib/libsmacker.so uninstall: libsmacker.so rm -f ${PREFIX}/lib/libsmacker.so