summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 090f5cb..8813bd6 100644
--- a/Makefile
+++ b/Makefile
@@ -53,11 +53,11 @@ config.h:
 	esac > $@
 
 install: qbe
-	mkdir -p "$(DESTDIR)/$(BINDIR)"
-	cp qbe "$(DESTDIR)/$(BINDIR)/qbe"
+	mkdir -p "$(DESTDIR)$(BINDIR)"
+	install -m755 qbe "$(DESTDIR)$(BINDIR)/qbe"
 
 uninstall:
-	rm -f "$(DESTDIR)/$(BINDIR)/qbe"
+	rm -f "$(DESTDIR)$(BINDIR)/qbe"
 
 clean:
 	rm -f *.o */*.o qbe