X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/b95edc0574dc2ebc65b197b1b1ad464821dfe519..37d1ed6886cbb6f0a18e00f698974d5025257c59:/projects/sgauth/Makefile?ds=sidebyside

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: