]> mj.ucw.cz Git - libucw.git/blob - ucw/shell/Makefile
Packages: Simplified definition of install targets.
[libucw.git] / ucw / shell / Makefile
1 # Support routines for shell scripts
2
3 DIRS+=ucw/shell
4 UCW_SHELL_PROGS=$(addprefix $(o)/ucw/shell/ucw-,config logger logoutput)
5 PROGS+=$(UCW_SHELL_PROGS)
6 DATAFILES+=$(o)/ucw/shell/libucw.sh
7
8 $(o)/ucw/shell/ucw-config: $(o)/ucw/shell/ucw-config.o $(LIBUCW)
9 $(o)/ucw/shell/ucw-logger: $(o)/ucw/shell/ucw-logger.o $(LIBUCW)
10 $(o)/ucw/shell/ucw-logoutput: $(o)/ucw/shell/ucw-logoutput.o $(LIBUCW)
11
12 TESTS+=$(addprefix $(o)/ucw/shell/,config.test)
13
14 $(o)/ucw/shell/config.test: $(o)/ucw/shell/ucw-config
15
16 INSTALL_UTILS_TARGETS+=install-ucw-shell
17 install-ucw-shell:
18         install -d -m 755 $(DESTDIR)$(INSTALL_BIN_DIR)
19         install -m 755 $(UCW_SHELL_PROGS) $(DESTDIR)$(INSTALL_BIN_DIR)
20 .PHONY: install-ucw-shell