From 51cc85b788988e17a043782e86f50bdf7bb7ca09 Mon Sep 17 00:00:00 2001 From: Marko Kreen Date: Tue, 13 Dec 2011 15:20:12 +0200 Subject: [PATCH] Makefile cleanup - add autoconf files to distclean - find antimake even when unconfigured - proper error message when unconfigured - make deb shortcut - needs to be run in configured tree --- Makefile | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index b70a516..b12e8c5 100644 --- a/Makefile +++ b/Makefile @@ -40,10 +40,14 @@ pgbouncer_SOURCES = \ include/util.h \ include/varcache.h +pgbouncer_EMBED_LIBUSUAL = 1 + # docs to install as-is dist_doc_DATA = doc/overview.txt doc/usage.txt doc/config.txt doc/todo.txt doc/faq.txt \ README NEWS etc/pgbouncer.ini etc/userlist.txt +DISTCLEANFILES = config.mak config.status lib/usual/config.h + # manpages man_MANS = doc/pgbouncer.1 doc/pgbouncer.5 @@ -94,6 +98,14 @@ AM_LANG_RC_LINK = false # USUAL_DIR = $(top_srcdir)/lib -pgbouncer_EMBED_LIBUSUAL = 1 + +abs_top_srcdir ?= $(CURDIR) include $(abs_top_srcdir)/lib/mk/antimake.mk +config.mak: + @echo "Please run ./configure" + @exit 1 + +deb: + debuild -b -us -uc + -- 2.40.0