LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File make_fix.patch of Package accessx (Project home:iavael:free)

diff --git a/Makefile b/Makefile
index 3d26935..7281c9e 100644
--- a/Makefile
+++ b/Makefile
@@ -2,26 +2,24 @@
 # By Dan Linder (dlinder@uiuc.edu)
 
 
+PREFIX=	/usr
 CC=		g++
 OPTS=		-O
-LLIBS=		-lXext
+LLIBS=		-lXext -lX11
 XLIBDIR=	-L/usr/X11R6/lib
 
 all:	ax
 
 install:
 	@echo "Installing accessx..."
-	@cp ax /usr/local/bin
-	@chmod og-w /usr/local/bin/ax
-	@chmod uog+rx /usr/local/bin/ax
-	@cp accessx /usr/local/bin
-	@chmod og-w /usr/local/bin/accessx
-	@chmod uog+rx /usr/local/bin/accessx
+	@mkdir -p $(DESTDIR)$(PREFIX)/bin
+	@install -m 755 ax $(DESTDIR)$(PREFIX)/bin
+	@install -m 755 accessx  $(DESTDIR)$(PREFIX)/bin
 
 uninstall:
 	@echo "Uninstalling accessx..."
-	@rm /usr/local/bin/ax
-	@rm /usr/local/bin/accessx
+	@rm $(DESTDIR)$(PREFIX)/bin/ax
+	@rm $(DESTDIR)$(PREFIX)/bin/accessx
 
 ax:ax.C ax.h Access.o
 	@echo "Compiling accessx..."