]> git.stg.codes - stg.git/blobdiff - projects/sgconf_xml/Makefile
Moved sgconf* back to /usr/sbin for backward compatibility.
[stg.git] / projects / sgconf_xml / Makefile
index b7ebca0addfb67ba8950e00ba94087d9383ea135..bfb7b21414d3a3eb3aefe4298ac5041b6abfa304 100644 (file)
@@ -22,7 +22,7 @@ LIBS += $(addprefix -lstg,$(STGLIBS)) -lexpat $(LIB_THREAD)
 ifeq ($(OS),linux)
 else
 LIBS += -lc \
-       -liconv
+        -liconv
 endif
 
 SEARCH_DIRS = -I ../../include
@@ -66,7 +66,13 @@ distclean: clean
 install: install-bin install-data
 
 install-bin:
+ifeq ($(DEBUG), yes)
+       mkdir -m $(DIR_MODE) -p $(PREFIX)/usr/sbin
+       install -m $(BIN_MODE) -o $(OWNER) $(PROG) $(PREFIX)/usr/sbin/$(PROG)
+else
+       mkdir -m $(DIR_MODE) -p $(PREFIX)/usr/sbin
        install -m $(BIN_MODE) -o $(OWNER) -s $(PROG) $(PREFIX)/usr/sbin/$(PROG)
+endif
        $(MAKE) -C $(DIR_LIBSRC) install
 
 uninstall: uninstall-bin uninstall-data