diff options
author | Björn Gustavsson <[email protected]> | 2011-06-16 08:52:01 +0200 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2011-08-08 11:59:10 +0200 |
commit | 2c900a381a4ee6392c50c41c2d83ee341ddc1430 (patch) | |
tree | af2b5905cb2809f0e03b99ff8494b36df04d69ca /lib/common_test/src | |
parent | e3282ba372dbfc34b0677c1034a0c4a738ba603a (diff) | |
download | otp-2c900a381a4ee6392c50c41c2d83ee341ddc1430.tar.gz otp-2c900a381a4ee6392c50c41c2d83ee341ddc1430.tar.bz2 otp-2c900a381a4ee6392c50c41c2d83ee341ddc1430.zip |
common_test Makefile: Support parallel make
Add dependecies to force the ct_line parse transform module to be
built before all other modules.
Diffstat (limited to 'lib/common_test/src')
-rw-r--r-- | lib/common_test/src/Makefile | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/common_test/src/Makefile b/lib/common_test/src/Makefile index 84b122b5e4..f34adc0a65 100644 --- a/lib/common_test/src/Makefile +++ b/lib/common_test/src/Makefile @@ -39,8 +39,9 @@ RELSYSDIR = $(RELEASE_PATH)/lib/common_test-$(VSN) # Target Specs # ---------------------------------------------------- +PARSE_TRANSFORMS= $(EBIN)/ct_line.$(EMULATOR) + MODULES= \ - ct_line \ ct \ ct_logs \ ct_framework \ @@ -72,6 +73,7 @@ MODULES= \ ct_hooks_lock TARGET_MODULES= $(MODULES:%=$(EBIN)/%) +BEAM_FILES= $(MODULES:%=$(EBIN)/%.$(EMULATOR)) ERL_FILES= $(MODULES:=.erl) HRL_FILES = \ @@ -96,8 +98,9 @@ ERL_COMPILE_FLAGS += -pa ../ebin -I../include -I $(ERL_TOP)/lib/snmp/include/ \ # Targets # ---------------------------------------------------- TARGET_FILES = \ + $(PARSE_TRANSFORMS) \ $(GEN_ERL_FILES:%.erl=$(EBIN)/%.$(EMULATOR)) \ - $(MODULES:%=$(EBIN)/%.$(EMULATOR)) \ + $(BEAM_FILES) \ $(APP_TARGET) $(APPUP_TARGET) APP_FILE= common_test.app @@ -125,6 +128,8 @@ $(APP_TARGET): $(APP_SRC) ../vsn.mk $(APPUP_TARGET): $(APPUP_SRC) ../vsn.mk sed -e 's;%VSN%;$(VSN);' $< > $@ +$(BEAM_FILES): $(PARSE_TRANSFORMS) + # ---------------------------------------------------- # Release Target # ---------------------------------------------------- |