X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;ds=sidebyside;f=ucw%2Futils%2FMakefile;h=b0068726712184007c56da4ae1071062fcb566e8;hb=d4123b266f32fe1c84c03cc66ed7cc6c943a355b;hp=e7892722f8a53f7938c13c9f144327163c123ddb;hpb=e52137cfe720e1d2ce9bcaa2ef76e174f5d1478d;p=libucw.git diff --git a/ucw/utils/Makefile b/ucw/utils/Makefile index e7892722..b0068726 100644 --- a/ucw/utils/Makefile +++ b/ucw/utils/Makefile @@ -1,17 +1,24 @@ # Makefile for the UCW utilities (c) 2008 Michal Vaner -PROGS+=$(addprefix $(o)/ucw/utils/,b224 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/b224: $(o)/ucw/utils/b224.o $(LIBUCW) $(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