]> git.stg.codes - stg.git/blobdiff - projects/sgconf_xml/Makefile
Patch from SpiderX <spiderx@spiderx.dp.ua> - added installing demo scripts for
[stg.git] / projects / sgconf_xml / Makefile
index b7ebca0addfb67ba8950e00ba94087d9383ea135..32384e628929d327f08dd7725f92bdb3f4a3d21f 100644 (file)
@@ -66,7 +66,11 @@ distclean: clean
 install: install-bin install-data
 
 install-bin:
 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/bin/$(PROG)
+endif
+       install -D -m $(BIN_MODE) -o $(OWNER) -s $(PROG) $(PREFIX)/usr/bin/$(PROG)
+else
        $(MAKE) -C $(DIR_LIBSRC) install
 
 uninstall: uninstall-bin uninstall-data
        $(MAKE) -C $(DIR_LIBSRC) install
 
 uninstall: uninstall-bin uninstall-data