# HG changeset patch # User "Yann E. MORIN" # Date 1230459590 0 # Node ID a1dc8836fcf486e231a18eb780b9ff252d2e2268 # Parent 91f9328d52a72389408a7e655596d0c83321b4cf Small Makefile fixes. /trunk/Makefile.in | 29 17 12 0 +++++++++++++++++------------ 1 file changed, 17 insertions(+), 12 deletions(-) diff -r 91f9328d52a7 -r a1dc8836fcf4 Makefile.in --- a/Makefile.in Sun Dec 28 09:38:35 2008 +0000 +++ b/Makefile.in Sun Dec 28 10:19:50 2008 +0000 @@ -6,21 +6,6 @@ all: Makefile build ############################################################################### -# Sanity checks - -# Check if Makefile is up to date: -Makefile: Makefile.in - @echo "$< did changed: you must re-run './configure'" - @false - -# If installing with DESTDIR, check it's an absolute path -ifneq ($(strip $(DESTDIR)),) - ifneq ($(DESTDIR),$(abspath /$(DESTDIR))) - $(error DESTDIR is not an absolute PATH: '$(DESTDIR)') - endif -endif - -############################################################################### # Configuration variables VERSION:= @@VERSION@@ @@ -30,7 +15,27 @@ MANDIR := @@MANDIR@@ DATE := @@DATE@@ LOCAL := @@LOCAL@@ -MAKE := $(shell which $(MAKE) || type -p $(MAKE) || echo /usr/bin/make) +MAKE := $(shell which $(MAKE) 2>/dev/null || type -p $(MAKE) 2>/dev/null || echo "ct-ng:nomake") + +############################################################################### +# Sanity checks + +# Check if Makefile is up to date: +Makefile: Makefile.in + @echo "$< did changed: you must re-run './configure'" + @false + +# Check we do have make +ifeq ($(strip $(MAKE)),ct-ng:nomake) + $(error 'make' was not found on your system) +endif + +# If installing with DESTDIR, check it's an absolute path +ifneq ($(strip $(DESTDIR)),) + ifneq ($(DESTDIR),$(abspath /$(DESTDIR))) + $(error DESTDIR is not an absolute PATH: '$(DESTDIR)') + endif +endif ############################################################################### # Global make rules