Makefile: Allow clean and distclean targets when libite/libuev are disabled.

Even though libite and libuEv can be disabled, using the --with-libnnn
option to configure, we let make descend into those submodules for the
clean and distclean targets.  This way we can rely on make dev to work.

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson committed 2015-09-18 09:14:49 +02:00
1 parent 6531b2f20a
commit 125fc661a3
1 file changed
-8
-8
View File
@@ -143,22 +143,14 @@ uninstall: uninstall-exec uninstall-data uninstall-dev
clean:
+$(MAKE) -C plugins $@
ifndef LIBITE
+$(MAKE) -C libite $@
endif
ifndef LIBUEV
+$(MAKE) -C libuev $@
endif
-@$(RM) $(OBJS) $(DEPS) $(EXEC)
distclean: clean
+$(MAKE) -C plugins $@
ifndef LIBITE
+$(MAKE) -C libite $@
endif
ifndef LIBUEV
+$(MAKE) -C libuev $@
endif
-@$(RM) $(JUNK) config.mk config.h unittest *.o *.html
check: