]> mj.ucw.cz Git - libucw.git/blobdiff - ucw/shell/Makefile
Main recio: Constants seem to be OK, deleted FIXME
[libucw.git] / ucw / shell / Makefile
index f9f6e076b15e6102513a2ac1e583b8fedf44f907..d45895acfd561cb183d5f03404a5afd28ad3baea 100644 (file)
@@ -1,7 +1,8 @@
 # Support routines for shell scripts
 
 DIRS+=ucw/shell
-PROGS+=$(o)/ucw/shell/config $(o)/ucw/shell/logger
+UCW_SHELL_PROGS=$(addprefix $(o)/ucw/shell/,config logger)
+PROGS+=$(UCW_SHELL_PROGS)
 DATAFILES+=$(o)/ucw/shell/libucw.sh
 
 $(o)/ucw/shell/config: $(o)/ucw/shell/config.o $(LIBUCW)
@@ -10,3 +11,10 @@ $(o)/ucw/shell/logger: $(o)/ucw/shell/logger.o $(LIBUCW)
 TESTS+=$(addprefix $(o)/ucw/shell/,config.test)
 
 $(o)/ucw/shell/config.test: $(o)/ucw/shell/config
+
+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)
+
+.PHONY: install-ucw-shell