From 637ce24d0ed2e4ca0807b5ef1a9e930e22b6bc28 Mon Sep 17 00:00:00 2001 From: Brian Aker Date: Fri, 31 Jan 2014 13:36:27 +0100 Subject: [PATCH] Add a top GNUMakefile to make things happen by default. --- .quickly | 5 ----- GNUmakefile | 36 ++++++++++++++++++++++++++++++++++++ Makefile.am | 3 ++- 3 files changed, 38 insertions(+), 6 deletions(-) delete mode 100644 .quickly create mode 100644 GNUmakefile diff --git a/.quickly b/.quickly deleted file mode 100644 index 637e364c..00000000 --- a/.quickly +++ /dev/null @@ -1,5 +0,0 @@ -project = libmemcached -version = 0.4.2 -template = pandora-build -project-type = library -pandora-version = 0.175 diff --git a/GNUmakefile b/GNUmakefile new file mode 100644 index 00000000..33ec5acc --- /dev/null +++ b/GNUmakefile @@ -0,0 +1,36 @@ +# -*-Makefile-*- +# +_bootstrap_Makefile := $(wildcard [M]akefile) +_bootstrap_config-status := $(wildcard config.status) + +ALL_RECURSIVE_TARGETS= + +ifneq ($(_bootstrap_Makefile),) + include Makefile +else + ifneq ($(_bt_config-status),) + $(srcdir)/config.status + $(MAKE) $(AM_MAKEFLAGS) configure + endif + +.DEFAULT_GOAL:= basic_build +srcdir= . + +configure: bootstrap.sh + @$(srcdir)/bootstrap.sh -a + +Makefile: configure + @$(srcdir)/bootstrap.sh -c + +.PHONY: basic_build +basic_build: Makefile + @$(MAKE) $(AM_MAKEFLAGS) +endif + +ALL_RECURSIVE_TARGETS+= $(AM_RECURSIVE_TARGETS) + +ifneq ($(word 2, $(MAKECMDGOALS)), ) +ifneq ($(filter $(ALL_RECURSIVE_TARGETS), $(MAKECMDGOALS)), ) +.NOTPARALLEL: +endif +endif diff --git a/Makefile.am b/Makefile.am index cc65cb78..7432e682 100644 --- a/Makefile.am +++ b/Makefile.am @@ -31,7 +31,6 @@ MAINTAINERCLEANFILES= DISTCLEANFILES+= aminclude.am -EXTRA_DIST+= .quickly EXTRA_DIST+= README.FIRST EXTRA_DIST+= README.win32 @@ -152,5 +151,7 @@ maintainer-clean-local: -rm -f m4/ltsugar.m4 -rm -f m4/ltversion.m4 -rm -f m4/lt~obsolete.m4 + -rm -f m4/test-driver -rmdir build-aux -rm -rf ${top_builddir}/html + -rm -f bootstrap -- 2.30.2