mirror of
https://github.com/troglobit/finit.git
synced 2026-10-02 05:52:48 +07:00
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:
@@ -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:
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user