From 2d867cc5427fc9a703262fddbabd62d46b4badfa Mon Sep 17 00:00:00 2001 From: Michal Vaner Date: Sun, 5 Oct 2008 10:39:23 +0200 Subject: [PATCH] Cleanup libucw installation --- ucw/Makefile | 10 ++++++---- ucw/sorter/Makefile | 5 +++-- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/ucw/Makefile b/ucw/Makefile index 4e50e7ce..6a150ac6 100644 --- a/ucw/Makefile +++ b/ucw/Makefile @@ -33,7 +33,7 @@ LIBUCW_MODS= \ bbuf \ getopt -LIBUCW_INCLUDES= \ +LIBUCW_LOCAL_INCLUDES= \ lib.h config.h threads.h \ mempool.h \ arraysort.h \ @@ -45,7 +45,7 @@ LIBUCW_INCLUDES= \ hashfunc.h hashtable.h \ heap.h binheap.h binheap-node.h \ redblack.h \ - binsearch.h prime.h \ + prime.h \ bitops.h \ conf.h getopt.h ipaccess.h \ profile.h \ @@ -62,13 +62,15 @@ LIBUCW_INCLUDES= \ ifdef CONFIG_UCW_THREADS # Some modules require threading LIBUCW_MODS+=threads-conf workqueue asio fb-direct -LIBUCW_INCLUDES+=workqueue.h semaphore.h asio.h +LIBUCW_LOCAL_INCLUDES+=workqueue.h semaphore.h asio.h endif ifdef CONFIG_OWN_GETOPT include $(s)/ucw/getopt/Makefile endif +LIBUCW_INCLUDES=$(LIBUCW_LOCAL_INCLUDES) + include $(s)/ucw/sorter/Makefile include $(s)/ucw/doc/Makefile @@ -151,7 +153,7 @@ endif INSTALL_TARGETS+=install-libucw install-libucw: install -d -m 755 $(DESTDIR)$(INSTALL_LIB_DIR) $(DESTDIR)$(INSTALL_INCLUDE_DIR)/ucw/ $(DESTDIR)$(INSTALL_PKGCONFIG_DIR) - install -m 644 `find run/include/ucw/ -maxdepth 1 -type f` $(DESTDIR)$(INSTALL_INCLUDE_DIR)/ucw/ + install -m 644 $(addprefix run/include/ucw/,$(LIBUCW_LOCAL_INCLUDES)) $(DESTDIR)$(INSTALL_INCLUDE_DIR)/ucw/ install -m 644 run/lib/pkgconfig/libucw.pc $(DESTDIR)$(INSTALL_PKGCONFIG_DIR) install -m 644 run/lib/$(LIBUCW_NAME) $(DESTDIR)$(INSTALL_LIB_DIR) diff --git a/ucw/sorter/Makefile b/ucw/sorter/Makefile index 5bbf178f..b7a91721 100644 --- a/ucw/sorter/Makefile +++ b/ucw/sorter/Makefile @@ -3,8 +3,9 @@ DIRS+=ucw/sorter LIBUCW_MODS+=$(addprefix sorter/, config govern sbuck array) -LIBUCW_INCLUDES+=$(addprefix sorter/, array.h common.h s-fixint.h \ +LIBUCW_SORTER_INCLUDES=$(addprefix sorter/, array.h common.h s-fixint.h \ s-internal.h s-multiway.h s-radix.h s-twoway.h sorter.h) +LIBUCW_INCLUDES+=$(LIBUCW_SORTER_INCLUDES) ifdef CONFIG_DEBUG_TOOLS PROGS+=$(o)/ucw/sorter/sort-test @@ -15,6 +16,6 @@ $(o)/ucw/sorter/sort-test: $(o)/ucw/sorter/sort-test.o $(LIBUCW) INSTALL_TARGETS+=install-ucw-sorter install-ucw-sorter: install -d -m 755 $(DESTDIR)$(INSTALL_INCLUDE_DIR)/ucw/sorter - install -m 644 run/include/ucw/sorter/* $(DESTDIR)$(INSTALL_INCLUDE_DIR)/ucw/sorter/ + install -m 644 $(addprefix run/include/ucw/,$(LIBUCW_SORTER_INCLUDES)) $(DESTDIR)$(INSTALL_INCLUDE_DIR)/ucw/sorter/ .PHONY: install-ucw-sorter -- 2.39.5