aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--GNUmakefile11
-rw-r--r--Makefile9
2 files changed, 14 insertions, 6 deletions
diff --git a/GNUmakefile b/GNUmakefile
index d176f153..b5ad3032 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -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
diff --git a/Makefile b/Makefile
index 307fb73c..71431a1c 100644
--- a/Makefile
+++ b/Makefile
@@ -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