Call libuev configure script if local libuev is used

Same as for libite, libuev has also changed to autotools, so
call its autogen.sh and configure script in cascade from our
own.  Aslo add safeguards to clean/distclean targets so we
do not attempt to enter the libuev subdirectory if it's not
configured.

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson
2016-02-05 21:43:04 +01:00
parent 5eb172ed46
commit cd5d55ef51
2 changed files with 16 additions and 0 deletions
+4
View File
@@ -147,7 +147,9 @@ clean:
ifndef LIBITE
+$(MAKE) -C libite $@
endif
ifndef LIBUEV
+$(MAKE) -C libuev $@
endif
-@$(RM) $(OBJS) $(DEPS) $(EXEC) 2>/dev/null
distclean: clean
@@ -155,7 +157,9 @@ distclean: clean
ifndef LIBITE
+$(MAKE) -C libite $@
endif
ifndef LIBUEV
+$(MAKE) -C libuev $@
endif
-@$(RM) $(JUNK) config.mk config.h unittest *.o *.html 2>/dev/null
check:
Vendored
+12
View File
@@ -456,6 +456,18 @@ if [ x"$libite" = x"" ]; then
test -e Makefile && make distclean >/dev/null
./autogen.sh
./configure
cd -
set +e
fi
# Call configure in local libuev if --with-libuev is not selected
if [ x"$libuev" = x"" ]; then
set -e
cd libuev
test -e Makefile && make distclean >/dev/null
./autogen.sh
./configure
cd -
set +e
fi