From: Jason Woofenden Date: Wed, 27 May 2009 02:06:18 +0000 (-0400) Subject: made "make install" work for non-root users X-Git-Tag: 0.5.4~9 X-Git-Url: https://jasonwoof.com/gitweb/?p=vor.git;a=commitdiff_plain;h=3b94094992bdbe85a4ac824e22df09b2a7362c27;hp=858b120a4636f8f73fee6564911b6201c789f35a made "make install" work for non-root users --- diff --git a/Makefile b/Makefile index a2f2ada..a3c3847 100644 --- a/Makefile +++ b/Makefile @@ -42,7 +42,7 @@ rocks := $(rocks:%=data/rock%.png) graphics := data/ship.png data/icon.png data/life.png data/font.png $(rocks) INSTALL := install -INSTALL_PROGRAM := $(INSTALL) -o games -g games +INSTALL_PROGRAM := $(INSTALL) $(shell sh -c 'test "$$UID" "=" "0" && echo "-o games -g games"') INSTALL_DATA := $(INSTALL) -m 644