aboutsummaryrefslogtreecommitdiffstats
path: root/erts/preloaded/src/Makefile
diff options
context:
space:
mode:
authorBjörn-Egil Dahlberg <[email protected]>2013-07-05 14:53:01 +0200
committerBjörn-Egil Dahlberg <[email protected]>2013-07-11 18:41:43 +0200
commit31b20cac498b98d40ed2bb15bb5259cb3c33a422 (patch)
tree4ea08ed59f03de130356fe647c39978363d058df /erts/preloaded/src/Makefile
parent14c0a18a9970f2287bbb09c46bee0c33358e3fc9 (diff)
downloadotp-31b20cac498b98d40ed2bb15bb5259cb3c33a422.tar.gz
otp-31b20cac498b98d40ed2bb15bb5259cb3c33a422.tar.bz2
otp-31b20cac498b98d40ed2bb15bb5259cb3c33a422.zip
Add erts app-file
Diffstat (limited to 'erts/preloaded/src/Makefile')
-rw-r--r--erts/preloaded/src/Makefile15
1 files changed, 12 insertions, 3 deletions
diff --git a/erts/preloaded/src/Makefile b/erts/preloaded/src/Makefile
index 7a7b7fb644..c1580b1495 100644
--- a/erts/preloaded/src/Makefile
+++ b/erts/preloaded/src/Makefile
@@ -55,9 +55,15 @@ ERL_FILES= $(PRE_LOADED_ERL_MODULES:%=%.erl)
BEAM_FILES= $(PRE_LOADED_BEAM_MODULES:%=%.S)
STUBS_FILES= $(PRE_LOADED_BEAM_MODULES:%=%.erl)
-TARGET_FILES = $(PRE_LOADED_MODULES:%=$(EBIN)/%.$(EMULATOR))
+TARGET_FILES = $(PRE_LOADED_MODULES:%=$(EBIN)/%.$(EMULATOR)) \
+ $(APP_TARGET)
STATIC_TARGET_FILES = $(PRE_LOADED_MODULES:%=$(STATIC_EBIN)/%.$(EMULATOR))
+APP_FILE= erts.app
+APP_SRC= $(APP_FILE).src
+APP_TARGET= $(STATIC_EBIN)/$(APP_FILE)
+
+
KERNEL_SRC=$(ERL_TOP)/lib/kernel/src
KERNEL_INCLUDE=$(ERL_TOP)/lib/kernel/include
STDLIB_INCLUDE=$(ERL_TOP)/lib/stdlib/include
@@ -72,14 +78,17 @@ clean:
copy:
cp *.beam $(STATIC_EBIN)
+$(APP_TARGET): $(APP_SRC) $(ERL_TOP)/erts/vsn.mk
+ $(vsn_verbose)sed -e 's;%VSN%;$(VSN);' $< > $@
+
include $(ERL_TOP)/make/otp_release_targets.mk
-release_spec:
+release_spec: $(APP_TARGET)
$(INSTALL_DIR) "$(RELSYSDIR)/src"
$(INSTALL_DATA) $(ERL_FILES) $(BEAM_FILES) $(STUBS_FILES) "$(RELSYSDIR)/src"
$(INSTALL_DIR) "$(RELSYSDIR)/ebin"
- $(INSTALL_DATA) $(STATIC_TARGET_FILES) "$(RELSYSDIR)/ebin"
+ $(INSTALL_DATA) $(STATIC_TARGET_FILES) $(APP_TARGET) "$(RELSYSDIR)/ebin"
release_docs_spec: