--- chewbacca/event/Make.def	2008/09/23 07:19:52	1.1.1.1
+++ chewbacca/event/Make.def	2009/07/29 15:47:20	1.2
@@ -92,27 +92,52 @@
 
 
 $(OBJDIR)/.%.d: %.c
+ifeq ($(verbose),)
+	@if [ ! -d $(OBJDIR) ]; then mkdir -p $(OBJDIR); fi; \
+	if [ ! -d $(OBJDIR)/$$(/usr/bin/dirname $<) ]; then mkdir -p $(OBJDIR)/$$(/usr/bin/dirname $<)  $(OBJDIR)/.$$(/usr/bin/dirname $<) ;fi; \
+#	echo "generating depend infos for $< into $@"; \
+	@$(CC) -M $(CFLAGS) $< 2>/dev/null\
+	        | sed -e 's%$*.o%$(OBJDIR)/$*.o%g' > $(OBJDIR)/.$*.d
+else
 	if [ ! -d $(OBJDIR) ]; then mkdir -p $(OBJDIR); fi; \
 	if [ ! -d $(OBJDIR)/$$(/usr/bin/dirname $<) ]; then mkdir -p $(OBJDIR)/$$(/usr/bin/dirname $<)  $(OBJDIR)/.$$(/usr/bin/dirname $<) ;fi; \
 	echo "generating depend infos for $< into $@"; \
 	$(CC) -M $(CFLAGS) $< 2>/dev/null\
 	        | sed -e 's%$*.o%$(OBJDIR)/$*.o%g' > $(OBJDIR)/.$*.d
+endif
 
 $(OBJDIR)/.%.d: %.cpp
+ifeq ($(verbose),)
+	@if [ ! -d $(OBJDIR) ]; then mkdir -p $(OBJDIR); fi; \
+	if [ ! -d $(OBJDIR)/$$(/usr/bin/dirname $<) ]; then mkdir -p $(OBJDIR)/$$(/usr/bin/dirname $<)  $(OBJDIR)/.$$(/usr/bin/dirname $<) ;fi; \
+#	echo "generating depend infos for $< into $@"; \
+	@$(CXX) -M $(CFLAGS) $< 2>/dev/null\
+		| sed -e 's%$*.o%$(OBJDIR)/$*.o%g' > $(OBJDIR)/.$*.d
+else
 	if [ ! -d $(OBJDIR) ]; then mkdir -p $(OBJDIR); fi; \
 	if [ ! -d $(OBJDIR)/$$(/usr/bin/dirname $<) ]; then mkdir -p $(OBJDIR)/$$(/usr/bin/dirname $<)  $(OBJDIR)/.$$(/usr/bin/dirname $<) ;fi; \
 	echo "generating depend infos for $< into $@"; \
 	$(CXX) -M $(CFLAGS) $< 2>/dev/null\
 		| sed -e 's%$*.o%$(OBJDIR)/$*.o%g' > $(OBJDIR)/.$*.d
+endif
 
 $(OBJDIR)/%.o: %.c
+ifeq ($(verbose),)
+	@if [ ! -d $(OBJDIR) ]; then mkdir -p $(OBJDIR); fi; \
+	$(CC) -c $(CFLAGS) -o $@ $<
+else
 	if [ ! -d $(OBJDIR) ]; then mkdir -p $(OBJDIR); fi; \
 	$(CC) -c $(CFLAGS) -o $@ $<
+endif
 
 $(OBJDIR)/%.o: %.cpp
+ifeq ($(verbose),)
+	@if [ ! -d $(OBJDIR) ]; then mkdir -p $(OBJDIR); fi; \
+	$(CXX) -c $(CFLAGS) -o $@ $<
+else
 	if [ ! -d $(OBJDIR) ]; then mkdir -p $(OBJDIR); fi; \
 	$(CXX) -c $(CFLAGS) -o $@ $<
-
+endif
 
 #------------------------------------------------------------------------------
 # General directory structure, includes, objects
