From 39599a0cd5a0eadaea666b655679df6f8d9b539c Mon Sep 17 00:00:00 2001 From: Marko Kreen Date: Wed, 2 Jan 2008 20:03:59 +0000 Subject: [PATCH] let make clean work even if config.mak does not exist --- Makefile | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index fda2d4c..db81031 100644 --- a/Makefile +++ b/Makefile @@ -20,6 +20,10 @@ DIRS = doc etc include src debian test # keep autoconf stuff separate -include config.mak +# fill values for unconfigured tree +srcdir ?= . +builddir ?= . + # calculate full-path values OBJS = $(SRCS:.c=.o) hdrs = $(addprefix $(srcdir)/include/, $(HDRS)) @@ -93,8 +97,7 @@ deb: configure # clean object files clean: doc-clean - rm -f $(builddir)/lib/*.[oas] $(builddir)/pgbouncer core core.* - rm -f lib/*.log + rm -f $(objs) $(builddir)/pgbouncer # clean configure results distclean: clean doc-distclean @@ -107,7 +110,7 @@ realclean: distclean doc-realclean rm -f tags # generate configure script and config.h.in -boot: distclean +boot: autoreconf -i -f rm -rf autom4te* include/config.h.in~ -- 2.40.0