--- Makefile	Wed Apr 13 18:59:17 2005
+++ ../../Makefile	Wed Apr 13 22:40:23 2005
@@ -2,7 +2,7 @@
 
 DEBUG=-g # -pg
 CFLAGS+=-Wall -O2 -DVERSION=\"${VERSION}\" $(DEBUG)
-LDFLAGS=-lgpgme $(DEBUG)
+LDFLAGS+=-lgpgme $(DEBUG) `pth-config --libs`
 
 OBJS=nasty.o
 
@@ -12,7 +12,7 @@
 	$(CC) -Wall -W $(OBJS) $(LDFLAGS) -o nasty
 
 install: nasty
-	cp nasty /usr/bin
+	install -m 755 nasty ${prefix}/bin
 
 clean:
 	rm -f $(OBJS) nasty core
