]> mj.ucw.cz Git - libucw.git/blob - ucw/shell/Makefile
Merge branch 'dev-lib' of ssh://git.ucw.cz/projects/sherlock/GIT/sherlock into dev-lib
[libucw.git] / ucw / shell / Makefile
1 # Support routines for shell scripts
2
3 DIRS+=ucw/shell
4 UCW_SHELL_PROGS=$(addprefix $(o)/ucw/shell/,config logger)
5 PROGS+=$(UCW_SHELL_PROGS)
6 DATAFILES+=$(o)/ucw/shell/libucw.sh
7
8 $(o)/ucw/shell/config: $(o)/ucw/shell/config.o $(LIBUCW)
9 $(o)/ucw/shell/logger: $(o)/ucw/shell/logger.o $(LIBUCW)
10
11 TESTS+=$(addprefix $(o)/ucw/shell/,config.test)
12
13 $(o)/ucw/shell/config.test: $(o)/ucw/shell/config
14
15 INSTALL_TARGETS+=install-ucw-shell
16 install-ucw-shell:
17         install -d -m 755 $(DESTDIR)$(INSTALL_BIN_DIR)
18         install -m 755 $(UCW_SHELL_PROGS) $(DESTDIR)$(INSTALL_BIN_DIR)
19
20 .PHONY: install-ucw-shell