]> mj.ucw.cz Git - libucw.git/blob - ucw/utils/Makefile
Daemon: Added a new daemon-control utility
[libucw.git] / ucw / utils / Makefile
1 # Makefile for the UCW utilities (c) 2008 Michal Vaner <vorner@ucw.cz>
2
3 UCW_UTILS=$(addprefix $(o)/ucw/utils/,basecode daemon-helper daemon-control rotate-log urltool)
4 PROGS+=$(UCW_UTILS)
5 DIRS+=ucw/utils
6
7 $(o)/ucw/utils/basecode: $(o)/ucw/utils/basecode.o $(LIBUCW)
8 $(o)/ucw/utils/daemon-helper: $(o)/ucw/utils/daemon-helper.o $(LIBUCW)
9 $(o)/ucw/utils/daemon-control: $(o)/ucw/utils/daemon-control.o $(LIBUCW)
10 $(o)/ucw/utils/urltool: $(o)/ucw/utils/urltool.o $(LIBUCW)
11
12 TESTS+=$(o)/ucw/utils/basecode.test
13 $(o)/ucw/utils/basecode.test: $(o)/ucw/utils/basecode
14
15 INSTALL_TARGETS+=install-ucw-utils
16 install-ucw-utils:
17         install -d -m 755 $(DESTDIR)$(INSTALL_BIN_DIR)
18         install -m 755 $(UCW_UTILS) $(DESTDIR)$(INSTALL_BIN_DIR)
19
20 .PHONY: install-ucw-utils