File sapplay-0.2.dif of Package libsap

--- Makefile
+++ Makefile
@@ -1,16 +1,17 @@
+CC=g++ -I..
 OPTS=-Wall -O2
 
 all: sapplay
 
 sapplay: sapplay.c
-	$(CC) $(OPTS) -o $@ $< -lsap
+	$(CC) $(OPTS) -o $@ $< -L.. -lsap
 
 clean:
 	rm -f sapplay
 
 install:
-	install -s -D -m755 -o0 -g0 sapplay /usr/local/bin/sapplay
-	install -D -m644 -o0 -g0 sapplay.1 /usr/local/man/man1/sapplay.1
+	install -D -m755 sapplay $(DESTDIR)/usr/bin/sapplay
+	install -D -m644 sapplay.1 $(DESTDIR)$(MANDIR)/man1/sapplay.1
 
 uninstall:
-	rm -f /usr/local/bin/sapplay /usr/local/man/man1/sapplay.1
+	rm -f /usr/bin/sapplay /usr/man/man1/sapplay.1
openSUSE Build Service is sponsored by