INSTALL_TARGETS+=install-ucw-shell
install-ucw-shell:
- install -d -m 755 $(DESTDIR)$(INSTALL_BIN_DIR)
- install -m 755 $(UCW_SHELL_PROGS) $(DESTDIR)$(INSTALL_BIN_DIR)
+ install -d -m 755 $(DESTDIR)$(INSTALL_SBIN_DIR)
+ install -m 755 $(UCW_SHELL_PROGS) $(DESTDIR)$(INSTALL_SBIN_DIR)
.PHONY: install-ucw-shell
# Makefile for the UCW utilities (c) 2008 Michal Vaner <vorner@ucw.cz>
-UCW_UTILS=$(addprefix $(o)/ucw/utils/ucw-,basecode daemon-control rotate-log urltool)
DIRS+=ucw/utils
+UCW_SBIN_UTILS=$(addprefix $(o)/ucw/utils/ucw-,daemon-control rotate-log)
+UCW_BIN_UTILS=$(addprefix $(o)/ucw/utils/ucw-,basecode urltool)
+
ifdef CONFIG_UCW_OBSOLETE_DAEMON_HELPER
-UCW_UTILS+=$(o)/ucw/utils/ucw-daemon-helper
+UCW_SBIN_UTILS+=$(o)/ucw/utils/ucw-daemon-helper
endif
-PROGS+=$(UCW_UTILS)
+PROGS+=$(UCW_BIN_UTILS) $(UCW_SBIN_UTILS)
$(o)/ucw/utils/ucw-basecode: $(o)/ucw/utils/ucw-basecode.o $(LIBUCW)
$(o)/ucw/utils/ucw-daemon-helper: $(o)/ucw/utils/ucw-daemon-helper.o $(LIBUCW)
INSTALL_TARGETS+=install-ucw-utils
install-ucw-utils:
- install -d -m 755 $(DESTDIR)$(INSTALL_BIN_DIR)
- install -m 755 $(UCW_UTILS) $(DESTDIR)$(INSTALL_BIN_DIR)
+ install -d -m 755 $(addprefix $(DESTDIR),$(INSTALL_BIN_DIR) $(INSTALL_SBIN_DIR))
+ install -m 755 $(UCW_SBIN_UTILS) $(DESTDIR)$(INSTALL_SBIN_DIR)
+ install -m 755 $(UCW_BIN_UTILS) $(DESTDIR)$(INSTALL_BIN_DIR)
.PHONY: install-ucw-utils