Commit 8b90f09e6b60001662761a66e78cec95d3a4b5b3

Stefan Sperling 2018-03-12T15:30:36

fix make install target if user name != group name

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
diff --git a/got/Makefile b/got/Makefile
index da5fa39..1336114 100644
--- a/got/Makefile
+++ b/got/Makefile
@@ -11,8 +11,9 @@ DEBUG = -O0 -g
 CFLAGS += -Werror -Wall -Wstrict-prototypes -Wunused-variable
 
 # For now, default to installing binary in ~/bin
+GROUP!=id -g -n
 install:
-	${INSTALL} ${INSTALL_COPY} -o ${USER} -g ${USER} \
+	${INSTALL} ${INSTALL_COPY} -o ${USER} -g ${GROUP} \
 	-m ${BINMODE} ${PROG} ${HOME}/bin/${PROG}
 
 # Don't install man pages yet