From: Marko Kreen Date: Wed, 2 Jan 2008 20:03:59 +0000 (+0000) Subject: let make clean work even if config.mak does not exist X-Git-Tag: pgbouncer_1_2_rc2~99 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=39599a0cd5a0eadaea666b655679df6f8d9b539c;p=pgbouncer let make clean work even if config.mak does not exist --- 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~