X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;ds=inline;f=ucw%2Futils%2FMakefile;h=b0068726712184007c56da4ae1071062fcb566e8;hb=ecf11d9c9949a6e9323a4f18c2418532d7f77b8f;hp=5bb5e643eb60af4b63a6e3524b159d489fa1a235;hpb=5ae436304a6686d3b6bcaa64e4f028490b7108ce;p=libucw.git diff --git a/ucw/utils/Makefile b/ucw/utils/Makefile index 5bb5e643..b0068726 100644 --- a/ucw/utils/Makefile +++ b/ucw/utils/Makefile @@ -1,16 +1,24 @@ # Makefile for the UCW utilities (c) 2008 Michal Vaner -PROGS+=$(addprefix $(o)/ucw/utils/,basecode daemon-helper rotate-log urltool) +UCW_UTILS=$(addprefix $(o)/ucw/utils/,basecode daemon-control rotate-log urltool) +PROGS+=$(UCW_UTILS) DIRS+=ucw/utils -ifdef CONFIG_DEBUG -PROGS+=$(o)/ucw/utils/hex +ifdef CONFIG_UCW_OBSOLETE_DAEMON_HELPER +PROGS+=$(o)/ucw/utils/daemon-helper endif $(o)/ucw/utils/basecode: $(o)/ucw/utils/basecode.o $(LIBUCW) $(o)/ucw/utils/daemon-helper: $(o)/ucw/utils/daemon-helper.o $(LIBUCW) -$(o)/ucw/utils/hex: $(o)/ucw/utils/hex.o $(LIBUCW) +$(o)/ucw/utils/daemon-control: $(o)/ucw/utils/daemon-control.o $(LIBUCW) $(o)/ucw/utils/urltool: $(o)/ucw/utils/urltool.o $(LIBUCW) TESTS+=$(o)/ucw/utils/basecode.test $(o)/ucw/utils/basecode.test: $(o)/ucw/utils/basecode + +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) + +.PHONY: install-ucw-utils