GNUMakefile.in: Let the install target work if no group is specified
authorFabian Keil <fk@fabiankeil.de>
Mon, 8 Apr 2024 13:04:03 +0000 (15:04 +0200)
committerFabian Keil <fk@fabiankeil.de>
Wed, 26 Jun 2024 13:38:59 +0000 (15:38 +0200)
GNUmakefile.in

index db1bab5..146ad47 100644 (file)
@@ -932,7 +932,11 @@ install: CONF_DEST LOG_DEST PID_DEST check_doc GROUP_T
                        else \
                                GROUP_T=$(GROUP) ;\
                        fi ;\
-                       INSTALL_CONF="$(INSTALL_R) -g $$GROUP_T " ;\
+                       if [ x$(GROUP_T) != x ]; then \
+                               INSTALL_CONF="$(INSTALL_R) -g $$GROUP_T " ;\
+                       else \
+                               INSTALL_CONF="$(INSTALL_R)" ;\
+                       fi ;\
                else \
                        $(ECHO) "Superuser install, installing config files as $(USER):$(GROUP_T)" ;\
                        INSTALL_CONF="$(INSTALL_R) -o $(USER) -g $(GROUP_T)" ;\