diff options
author | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2008-12-28 10:19:50 +0000 |
---|---|---|
committer | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2008-12-28 10:19:50 +0000 |
commit | fb4b418266d3d53bd753a78204ebf98db0c8f466 (patch) | |
tree | 869b7a510f1bb88a3c911276950bc242feb2cd59 /Makefile.in | |
parent | 59f66ebdee30c5d0022243a58a00278a7e0555da (diff) | |
download | crosstool-ng-fb4b418266d3d53bd753a78204ebf98db0c8f466.tar.gz crosstool-ng-fb4b418266d3d53bd753a78204ebf98db0c8f466.tar.bz2 crosstool-ng-fb4b418266d3d53bd753a78204ebf98db0c8f466.zip |
Small Makefile fixes.
/trunk/Makefile.in | 29 17 12 0 +++++++++++++++++------------
1 file changed, 17 insertions(+), 12 deletions(-)
Diffstat (limited to 'Makefile.in')
-rw-r--r-- | Makefile.in | 29 |
1 files changed, 17 insertions, 12 deletions
diff --git a/Makefile.in b/Makefile.in index 9b0fbbb9..29905d1a 100644 --- a/Makefile.in +++ b/Makefile.in @@ -6,6 +6,18 @@ MAKEFLAGS += --no-print-directory --no-builtin-rules all: Makefile build ############################################################################### +# Configuration variables + +VERSION:= @@VERSION@@ +BINDIR := @@BINDIR@@ +LIBDIR := @@LIBDIR@@ +DOCDIR := @@DOCDIR@@ +MANDIR := @@MANDIR@@ +DATE := @@DATE@@ +LOCAL := @@LOCAL@@ +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: @@ -13,6 +25,11 @@ 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))) @@ -21,18 +38,6 @@ ifneq ($(strip $(DESTDIR)),) endif ############################################################################### -# Configuration variables - -VERSION:= @@VERSION@@ -BINDIR := @@BINDIR@@ -LIBDIR := @@LIBDIR@@ -DOCDIR := @@DOCDIR@@ -MANDIR := @@MANDIR@@ -DATE := @@DATE@@ -LOCAL := @@LOCAL@@ -MAKE := $(shell which $(MAKE) || type -p $(MAKE) || echo /usr/bin/make) - -############################################################################### # Global make rules TARGETS := bin lib doc man |