diff options
author | Lukas Larsson <[email protected]> | 2012-05-30 18:57:22 +0200 |
---|---|---|
committer | Lukas Larsson <[email protected]> | 2012-05-30 18:57:22 +0200 |
commit | 4535d409f75eeeb0e36b53f3a59d4f6e6f9529d1 (patch) | |
tree | b9fde95ccaf6151682b22f814a1d4b6e60d01d80 /lib/mnesia/test/Makefile | |
parent | 283cf3bbce1b31bfd9ef1cc82adaa23eb736a97f (diff) | |
parent | ab960374d77e7b7a21282017ecef99e21993fb76 (diff) | |
download | otp-4535d409f75eeeb0e36b53f3a59d4f6e6f9529d1.tar.gz otp-4535d409f75eeeb0e36b53f3a59d4f6e6f9529d1.tar.bz2 otp-4535d409f75eeeb0e36b53f3a59d4f6e6f9529d1.zip |
Merge branch 'lukas/fix_windows_release_tests/OTP-10099' into maint
* lukas/fix_windows_release_tests/OTP-10099:
Fix compilation of examples and tc names on windows
Create erl.ini for host emulator
Diffstat (limited to 'lib/mnesia/test/Makefile')
-rw-r--r-- | lib/mnesia/test/Makefile | 28 |
1 files changed, 18 insertions, 10 deletions
diff --git a/lib/mnesia/test/Makefile b/lib/mnesia/test/Makefile index ae4c9626c7..f041fef85b 100644 --- a/lib/mnesia/test/Makefile +++ b/lib/mnesia/test/Makefile @@ -52,24 +52,29 @@ MODULES= \ mnesia_cost \ mnesia_dbn_meters -MnesiaExamplesDir := ../examples +DocExamplesDir := ../doc/src/ -ExampleModules = \ +DocExampleModules = \ company \ company_o \ - bup \ - mnesia_meter \ - mnesia_tpcb -ExamplesHrl = \ + bup + +DocExamplesHrl = \ company.hrl \ company_o.hrl -ERL_FILES= $(MODULES:%=%.erl) $(ExampleModules:%=$(MnesiaExamplesDir)/%.erl) +ExamplesDir := ../examples/ + +ExampleModules = \ + mnesia_meter \ + mnesia_tpcb -HRL_FILES= mnesia_test_lib.hrl $(ExamplesHrl:%=$(MnesiaExamplesDir)/%) +ERL_FILES= $(MODULES:%=%.erl) $(DocExampleModules:%=$(DocExamplesDir)/%.erl) $(ExampleModules:%=$(ExamplesDir)/%.erl) + +HRL_FILES= mnesia_test_lib.hrl $(DocExamplesHrl:%=$(DocExamplesDir)/%) TARGET_FILES= \ - $(MODULES:%=$(EBIN)/%.$(EMULATOR)) $(ExampleModules:%=$(EBIN)/%.$(EMULATOR)) + $(MODULES:%=$(EBIN)/%.$(EMULATOR)) $(DocExampleModules:%=$(EBIN)/%.$(EMULATOR)) $(ExampleModules:%=$(EBIN)/%.$(EMULATOR)) INSTALL_PROGS= $(TARGET_FILES) @@ -91,7 +96,10 @@ EBIN = . tests debug opt: $(TARGET_FILES) -$(EBIN)/%.beam: $(MnesiaExamplesDir)/%.erl +$(EBIN)/%.beam: $(DocExamplesDir)/%.erl + $(ERLC) -bbeam $(ERL_COMPILE_FLAGS) -o$(EBIN) $< + +$(EBIN)/%.beam: $(ExamplesDir)/%.erl $(ERLC) -bbeam $(ERL_COMPILE_FLAGS) -o$(EBIN) $< clean: |