Kaydet (Commit) 93a3eed8 authored tarafından Bjoern Michaelsen's avatar Bjoern Michaelsen

gnumake2: some more checks for module makefiles

üst 74284c8e
......@@ -25,7 +25,15 @@
#
#*************************************************************************
include $(dir $(firstword $(MAKEFILE_LIST)))/../SourcePath.mk
ifneq ($(MAKE_VERSION),3.81)
$(error You need at least GNU Make 3.81!)
endif
ifeq ($(strip $(SOLARENV)),)
$(error No environment set!)
endif
include $(dir $(realpath $(firstword $(MAKEFILE_LIST))))/../SourcePath.mk
GBUILDDIR := $(SOLARENV)/gbuild
include $(GBUILDDIR)/gbuild.mk
......
......@@ -25,11 +25,16 @@
#
#*************************************************************************
.IF $(VERBOSE)
PRJ=..
TARGET=prj
.INCLUDE : settings.mk
.IF "$(VERBOSE)"!=""
VERBOSEFLAG :=
.ELSE
VERBOSEFLAG := -s
.ENDIF
all:
@cd .. && $(GNUMAKE) $(VERBOSEFLAG) -r -j$(MAXPROCESS)
cd $(PRJ) && $(GNUMAKE) $(VERBOSEFLAG) -r -j$(MAXPROCESS)
......@@ -25,7 +25,15 @@
#
#*************************************************************************
include $(dir $(firstword $(MAKEFILE_LIST)))/../SourcePath.mk
ifneq ($(MAKE_VERSION),3.81)
$(error You need at least GNU Make 3.81!)
endif
ifeq ($(strip $(SOLARENV)),)
$(error No environment set!)
endif
include $(dir $(realpath $(firstword $(MAKEFILE_LIST))))/../SourcePath.mk
GBUILDDIR := $(SOLARENV)/gbuild
include $(GBUILDDIR)/gbuild.mk
......
......@@ -25,11 +25,16 @@
#
#*************************************************************************
.IF $(VERBOSE)
PRJ=..
TARGET=prj
.INCLUDE : settings.mk
.IF "$(VERBOSE)"!=""
VERBOSEFLAG :=
.ELSE
VERBOSEFLAG := -s
.ENDIF
all:
@cd .. && $(GNUMAKE) $(VERBOSEFLAG) -r -j$(MAXPROCESS)
cd $(PRJ) && $(GNUMAKE) $(VERBOSEFLAG) -r -j$(MAXPROCESS)
......@@ -25,7 +25,15 @@
#
#*************************************************************************
include $(dir $(firstword $(MAKEFILE_LIST)))/../SourcePath.mk
ifneq ($(MAKE_VERSION),3.81)
$(error You need at least GNU Make 3.81!)
endif
ifeq ($(strip $(SOLARENV)),)
$(error No environment set!)
endif
include $(dir $(realpath $(firstword $(MAKEFILE_LIST))))/../SourcePath.mk
GBUILDDIR := $(SOLARENV)/gbuild
include $(GBUILDDIR)/gbuild.mk
......
......@@ -25,11 +25,16 @@
#
#*************************************************************************
.IF $(VERBOSE)
PRJ=..
TARGET=prj
.INCLUDE : settings.mk
.IF "$(VERBOSE)"!=""
VERBOSEFLAG :=
.ELSE
VERBOSEFLAG := -s
.ENDIF
all:
@cd .. && $(GNUMAKE) $(VERBOSEFLAG) -r -j$(MAXPROCESS)
cd $(PRJ) && $(GNUMAKE) $(VERBOSEFLAG) -r -j$(MAXPROCESS)
......@@ -25,7 +25,15 @@
#
#*************************************************************************
include $(dir $(firstword $(MAKEFILE_LIST)))/../SourcePath.mk
ifneq ($(MAKE_VERSION),3.81)
$(error You need at least GNU Make 3.81!)
endif
ifeq ($(strip $(SOLARENV)),)
$(error No environment set!)
endif
include $(dir $(realpath $(firstword $(MAKEFILE_LIST))))/../SourcePath.mk
GBUILDDIR := $(SOLARENV)/gbuild
include $(GBUILDDIR)/gbuild.mk
......
......@@ -25,11 +25,16 @@
#
#*************************************************************************
.IF $(VERBOSE)
PRJ=..
TARGET=prj
.INCLUDE : settings.mk
.IF "$(VERBOSE)"!=""
VERBOSEFLAG :=
.ELSE
VERBOSEFLAG := -s
.ENDIF
all:
@cd .. && $(GNUMAKE) $(VERBOSEFLAG) -r -j$(MAXPROCESS)
cd $(PRJ) && $(GNUMAKE) $(VERBOSEFLAG) -r -j$(MAXPROCESS)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment