Calling "make clean2" was particularly annoying because it first regenerated the
dependency files it is supposed to remove.
Unfortunately, this patch breaks multiple goals if one of them matches "clean".
For example "make clean all" does no longer work. But as this can easily be worked
around by calling "make clean && make all", we don't care.
all_objs := $(recv_objs) $(filter_objs) $(client_objs) $(gui_objs) \
$(audiod_objs) $(audioc_objs) $(fade_objs) $(server_objs) \
$(write_objs) $(afh_objs)
+
+ifeq ($(findstring clean, $(MAKECMDGOALS)),)
-include $(all_objs:.o=.d)
+endif
para_recv: $(recv_objs)
@[ -z "$(Q)" ] || echo 'LD $@'
fi
aclocal -I . &> /dev/null
autoconf
-autoheader
+autoheader
echo configuring...
./configure $@ > /dev/null
echo compiling...
-make clean all > /dev/null
+make clean2 &> /dev/null
+make > /dev/null