X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/b95edc0574dc2ebc65b197b1b1ad464821dfe519..02d8ff35c9a854ffd15a701e46a118bc51be3b7d:/projects/sgauth/Makefile

diff --git a/projects/sgauth/Makefile b/projects/sgauth/Makefile
index 99cd0e47..a59371c9 100644
--- a/projects/sgauth/Makefile
+++ b/projects/sgauth/Makefile
@@ -58,7 +58,11 @@ distclean: clean
 install: install-bin install-data
 
 install-bin:
-	install -m $(BIN_MODE) -o $(OWNER) -s $(PROG) $(PREFIX)/usr/sbin/$(PROG)
+ifeq ($(DEBUG), yes)
+	install -D -m $(BIN_MODE) -o $(OWNER) $(PROG) $(PREFIX)/usr/sbin/$(PROG)
+else
+	install -D -m $(BIN_MODE) -o $(OWNER) -s $(PROG) $(PREFIX)/usr/sbin/$(PROG)
+endif
 	$(MAKE) -C $(DIR_LIBSRC) install
 
 install-data: