From b1d55683ae1c146dad3892672d665fa8bcad61c0 Mon Sep 17 00:00:00 2001 From: Tzafrir Cohen Date: Thu, 5 Jun 2014 13:20:36 +0300 Subject: [PATCH] xpp: Don't generate .depends if there's no libusb Creating the The .depends file requires libusb support. Signed-off-by: Tzafrir Cohen Acked-by: Russ Meyerriecks --- xpp/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xpp/Makefile b/xpp/Makefile index ee15fe1..cb5a618 100644 --- a/xpp/Makefile +++ b/xpp/Makefile @@ -192,9 +192,11 @@ clean: $(RM) .depend .octasic.depend *.o xtalk/*.o $(OCT_HERE_OBJS) $(TARGETS) .PHONY: depend +ifeq (1,$(PBX_USB)) depend: .depend .depend: *.c *.h xtalk/*.c @echo "Calculating dependencies" @if ! $(CC) $(CFLAGS) $(OCT_CFLAGS) -MM $(SRCS) > $@; then $(RM) $@; exit 1; fi include .depend +endif