fix Makefile to use new style depend

This commit is contained in:
Vitor Santos Costa 2009-04-22 17:56:48 -05:00
parent c271850269
commit 7d0341bec9

View File

@ -714,10 +714,10 @@ TAGS: $(C_SOURCES) $(PL_SOURCES) $(HEADERS)
depend: $(HEADERS) $(C_SOURCES)
-@if test "$(GCC)" = yes; then\
$(CC) -MM $(CFLAGS) -I$(srcdir)/include $(C_SOURCES) > .depend;\
$(CC) -MM $(CFLAGS) -I$(srcdir)/include $(C_SOURCES) > depend;\
else\
makedepend -f - -- $(CFLAGS) -I$(srcdir)/include -- $(C_SOURCES) |\
sed 's|.*/\([^:]*\):|\1:|' > .depend ;\
sed 's|.*/\([^:]*\):|\1:|' > depend ;\
fi
clean: clean_docs
@ -823,4 +823,4 @@ installcheck:
# DO NOT DELETE THIS LINE -- make depend depends on it.
include .depend
include depend