mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2025-01-31 00:23:56 +00:00
Small Makefile fixes.
/trunk/Makefile.in | 29 17 12 0 +++++++++++++++++------------ 1 file changed, 17 insertions(+), 12 deletions(-)
This commit is contained in:
parent
59f66ebdee
commit
fb4b418266
37
Makefile.in
37
Makefile.in
@ -5,21 +5,6 @@ MAKEFLAGS += --no-print-directory --no-builtin-rules
|
|||||||
|
|
||||||
all: Makefile build
|
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
|
# Configuration variables
|
||||||
|
|
||||||
@ -30,7 +15,27 @@ DOCDIR := @@DOCDIR@@
|
|||||||
MANDIR := @@MANDIR@@
|
MANDIR := @@MANDIR@@
|
||||||
DATE := @@DATE@@
|
DATE := @@DATE@@
|
||||||
LOCAL := @@LOCAL@@
|
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
|
# Global make rules
|
||||||
|
Loading…
x
Reference in New Issue
Block a user