Skip to content

Commit

Permalink
create a common makefile for D, P, Q, SQ macros
Browse files Browse the repository at this point in the history
  • Loading branch information
2001asjad committed Apr 28, 2021
1 parent b0ecff6 commit 69fba39
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 8 deletions.
2 changes: 1 addition & 1 deletion clean.mk
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@

.DEFAULT_GOAL := clean

include common.mk

ifndef TEST_ROOT
TEST_ROOT := $(shell pwd)$(D)..
endif

include $(TEST_ROOT)/TKG/common.mk
include settings.mk

cleanBuild:
Expand Down
3 changes: 1 addition & 2 deletions compile.mk
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,11 @@

.DEFAULT_GOAL := compile

include common.mk

ifndef TEST_ROOT
TEST_ROOT := $(shell pwd)$(D)..
endif

include $(TEST_ROOT)/TKG/common.mk
include settings.mk
include moveDmp.mk

Expand Down
7 changes: 6 additions & 1 deletion makeGen.mk
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ help:
CURRENT_DIR := $(shell pwd)
OPTS=

include common.mk

TKG_JAR = .$(D)bin$(D)TestKitGen.jar
JSON_SIMPLE = .$(D)lib$(D)json-simple.jar
Expand All @@ -32,6 +31,12 @@ ifneq (,$(findstring Win,$(OS)))
CURRENT_DIR := $(subst \,/,$(CURRENT_DIR))
P=;
endif

ifndef TEST_ROOT
TEST_ROOT := $(shell pwd)$(D)..
endif

include $(TEST_ROOT)/TKG/common.mk
include $(CURRENT_DIR)$(D)featureSettings.mk
-include $(CURRENT_DIR)$(D)autoGenEnv.mk
include $(CURRENT_DIR)$(D)envSettings.mk
Expand Down
4 changes: 2 additions & 2 deletions moveDmp.mk
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@
# limitations under the License.
##############################################################################

include common.mk

ifndef TEST_ROOT
TEST_ROOT := $(shell pwd)$(D)..
endif

include $(TEST_ROOT)/TKG/common.mk

COMPILATION_OUTPUT=$(TEST_ROOT)$(D)TKG$(D)output_compilation
COMPILATION_LOG=$(COMPILATION_OUTPUT)$(D)compilation.log
MOVE_TDUMP_PERL=perl scripts$(D)moveDmp.pl --compileLogPath=$(Q)$(COMPILATION_LOG)$(Q) --testRoot=$(Q)$(TEST_ROOT)$(Q)
Expand Down
2 changes: 1 addition & 1 deletion runtest.mk
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@

.DEFAULT_GOAL := test

include common.mk

SUBDIRS = ..

ifndef TEST_ROOT
TEST_ROOT := $(shell pwd)$(D)..
endif

include $(TEST_ROOT)/TKG/common.mk
include settings.mk
5 changes: 4 additions & 1 deletion settings.mk
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,11 @@ AND_IF_SUCCESS=&&
PROPS_DIR=props_unix
TOTALCOUNT := 0

include common.mk
ifndef TEST_ROOT
TEST_ROOT := $(shell pwd)$(D)..
endif

include $(TEST_ROOT)/TKG/common.mk
-include $(TEST_ROOT)$(D)TKG$(D)autoGenEnv.mk
include $(TEST_ROOT)$(D)TKG$(D)envSettings.mk
-include $(TEST_ROOT)$(D)TKG$(D)utils.mk
Expand Down

0 comments on commit 69fba39

Please sign in to comment.