]> mj.ucw.cz Git - libucw.git/commitdiff
Install API of the new sorter.
authorMartin Mares <mj@ucw.cz>
Sat, 8 Sep 2007 14:28:23 +0000 (16:28 +0200)
committerMartin Mares <mj@ucw.cz>
Sat, 8 Sep 2007 14:28:23 +0000 (16:28 +0200)
I had to get rid of the $(?F) construct, because did not work with includes
in subdirectories (like sorter has). I have replaced it by a direct reference
to the include list macro, which also allows to add the missing dependency
on autoconf.h.

lib/Makefile
lib/sorter/Makefile

index 2ee53e141c8b180106d115045182b4c38f6aee3c..6f44b008ac232bddf24e1b2b3007f82c692a2202 100644 (file)
@@ -122,10 +122,8 @@ endif
 
 API_LIBS+=libucw
 API_INCLUDES+=$(o)/lib/.include-stamp
-# XXX: We do not have a dependency on autoconf.h, but it is generated by configure
-# before make ever starts, so this is safe.
-$(o)/lib/.include-stamp: $(addprefix $(s)/lib/,$(LIBUCW_INCLUDES))
-       $(Q)$(s)/build/install-includes $(<D) run/include/lib $(?F)
+$(o)/lib/.include-stamp: $(addprefix $(s)/lib/,$(LIBUCW_INCLUDES)) obj/autoconf.h
+       $(Q)$(s)/build/install-includes $(<D) run/include/lib $(LIBUCW_INCLUDES)
        $(Q)$(s)/build/install-includes obj run/include/lib autoconf.h
        $(Q)touch $@
 run/lib/pkgconfig/libucw.pc: $(o)/lib/libucw.pc
index a9b94307c17aac6728f21f400a536efe2ba20d5c..b54c05f41d55b3fc706609b2a443e21b25b37728 100644 (file)
@@ -3,8 +3,8 @@
 DIRS+=lib/sorter
 
 LIBUCW_MODS+=$(addprefix sorter/, config govern sbuck array)
-#LIBUCW_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+=$(addprefix sorter/, array.h common.h s-fixint.h \
+       s-internal.h s-multiway.h s-radix.h s-twoway.h sorter.h)
 
 ifdef CONFIG_DEBUG_TOOLS
 PROGS+=$(o)/lib/sorter/sort-test