Include .depend in GNUmakefile since GNU make does not include it

automatically.

Also remove .depend from clean target and add a clean-depend target.
This commit is contained in:
Nicholas Marriott 2009-07-21 13:51:30 +00:00
parent 48c36d628a
commit 962b9c6548
2 changed files with 14 additions and 6 deletions

View File

@ -1,4 +1,4 @@
# $Id: GNUmakefile,v 1.110 2009-07-20 05:40:12 nicm Exp $
# $Id: GNUmakefile,v 1.111 2009-07-21 13:51:30 nicm Exp $
.PHONY: clean
@ -48,9 +48,12 @@ depend: $(SRCS)
$(CC) $(CPPFLAGS) $(CFLAGS) -MM $(SRCS) > .depend
clean:
rm -f tmux *.o .depend *~ *.core *.log compat/*.o
rm -f tmux *.o *~ *.core *.log compat/*.o
clean-all: clean
clean-depend:
rm -f .depend
clean-all: clean clean-depend
rm -f config.h config.mk
install: all
@ -58,3 +61,5 @@ install: all
$(INSTALLBIN) tmux $(DESTDIR)$(PREFIX)/bin/tmux
$(INSTALLDIR) $(DESTDIR)$(PREFIX)/man/man1
$(INSTALLMAN) tmux.1 $(DESTDIR)$(PREFIX)/man/man1/tmux.1
-include .depend

View File

@ -1,4 +1,4 @@
# $Id: Makefile,v 1.145 2009-07-20 05:40:13 nicm Exp $
# $Id: Makefile,v 1.146 2009-07-21 13:51:30 nicm Exp $
.SUFFIXES: .c .o
.PHONY: clean
@ -53,9 +53,12 @@ depend:
mkdep ${CPPFLAGS} ${CFLAGS} ${SRCS:M*.c}
clean:
rm -f tmux *.o .depend *~ *.core *.log compat/*.o
rm -f tmux *.o *~ *.core *.log compat/*.o
clean-all: clean
clean-depend:
rm -f .depend
clean-all: clean clean-depend
rm -f config.h config.mk
install: all