eeecf737fa
Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
98 lines
3.3 KiB
Diff
98 lines
3.3 KiB
Diff
From: Peter Lemenkov <lemenkov@gmail.com>
|
|
Date: Tue, 26 Aug 2014 13:53:49 +0400
|
|
Subject: [PATCH] Install internal hrl files when necessary
|
|
|
|
Sometimes we install *.erl files. Some these files include a private
|
|
*.hrl files, so in order to make these *.erl files usable we have to
|
|
install these private includes as well.
|
|
|
|
Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
|
|
|
|
Conflicts:
|
|
lib/eunit/src/Makefile
|
|
lib/percept/src/Makefile
|
|
lib/test_server/src/Makefile
|
|
|
|
diff --git a/lib/debugger/src/Makefile b/lib/debugger/src/Makefile
|
|
index 1e8f51d..bfdb0c9 100644
|
|
--- a/lib/debugger/src/Makefile
|
|
+++ b/lib/debugger/src/Makefile
|
|
@@ -63,7 +63,7 @@ MODULES= \
|
|
|
|
HRL_FILES=
|
|
|
|
-INTERNAL_HRL_FILES= dbg_ieval.hrl
|
|
+INTERNAL_HRL_FILES= dbg_ieval.hrl dbg_wx_filedialog_win.hrl
|
|
|
|
ERL_FILES= $(MODULES:%=%.erl)
|
|
|
|
diff --git a/lib/eunit/src/Makefile b/lib/eunit/src/Makefile
|
|
index a5e147d..8483e28 100644
|
|
--- a/lib/eunit/src/Makefile
|
|
+++ b/lib/eunit/src/Makefile
|
|
@@ -46,6 +46,8 @@ SOURCES= \
|
|
|
|
INCLUDE_FILES = eunit.hrl
|
|
|
|
+INTERNAL_HRL_FILES= eunit_internal.hrl
|
|
+
|
|
PARSE_TRANSFORM_BIN = $(PARSE_TRANSFORM:%.erl=$(EBIN)/%.$(EMULATOR))
|
|
|
|
TARGET_FILES= $(SOURCES:%.erl=$(EBIN)/%.$(EMULATOR))
|
|
@@ -117,6 +119,8 @@ include $(ERL_TOP)/make/otp_release_targets.mk
|
|
release_spec: opt
|
|
$(INSTALL_DIR) "$(RELSYSDIR)/ebin"
|
|
$(INSTALL_DATA) $(PARSE_TRANSFORM_BIN) $(OBJECTS) "$(RELSYSDIR)/ebin"
|
|
+ $(INSTALL_DIR) "$(RELSYSDIR)/src"
|
|
+ $(INSTALL_DATA) $(INTERNAL_HRL_FILES) "$(RELSYSDIR)/src"
|
|
$(INSTALL_DIR) "$(RELSYSDIR)/include"
|
|
$(INSTALL_DATA) $(INCLUDE_DELIVERABLES) "$(RELSYSDIR)/include"
|
|
|
|
diff --git a/lib/kernel/src/Makefile b/lib/kernel/src/Makefile
|
|
index dbda2a2..3e1792f 100644
|
|
--- a/lib/kernel/src/Makefile
|
|
+++ b/lib/kernel/src/Makefile
|
|
@@ -122,6 +122,7 @@ HRL_FILES= ../include/file.hrl ../include/inet.hrl ../include/inet_sctp.hrl \
|
|
../include/net_address.hrl
|
|
|
|
INTERNAL_HRL_FILES= application_master.hrl disk_log.hrl \
|
|
+ erl_epmd.hrl hipe_ext_format.hrl \
|
|
inet_dns.hrl inet_res.hrl \
|
|
inet_boot.hrl inet_config.hrl inet_int.hrl \
|
|
inet_dns_record_adts.hrl
|
|
diff --git a/lib/percept/src/Makefile b/lib/percept/src/Makefile
|
|
index e501539..5902da3 100644
|
|
--- a/lib/percept/src/Makefile
|
|
+++ b/lib/percept/src/Makefile
|
|
@@ -50,6 +50,8 @@ MODULES= \
|
|
|
|
#HRL_FILES= ../include/
|
|
|
|
+INTERNAL_HRL_FILES= egd.hrl percept.hrl
|
|
+
|
|
ERL_FILES= $(MODULES:%=%.erl)
|
|
|
|
TARGET_FILES= $(MODULES:%=$(EBIN)/%.$(EMULATOR)) $(APP_TARGET) $(APPUP_TARGET)
|
|
@@ -93,6 +95,8 @@ docs:
|
|
include $(ERL_TOP)/make/otp_release_targets.mk
|
|
|
|
release_spec: opt
|
|
+ $(INSTALL_DIR) "$(RELSYSDIR)/src"
|
|
+ $(INSTALL_DATA) $(INTERNAL_HRL_FILES) "$(RELSYSDIR)/src"
|
|
# $(INSTALL_DIR) "$(RELSYSDIR)/include"
|
|
# $(INSTALL_DATA) $(HRL_FILES) "$(RELSYSDIR)/include"
|
|
$(INSTALL_DIR) "$(RELSYSDIR)/ebin"
|
|
diff --git a/lib/test_server/src/Makefile b/lib/test_server/src/Makefile
|
|
index bcb1bc3..deb7caf 100644
|
|
--- a/lib/test_server/src/Makefile
|
|
+++ b/lib/test_server/src/Makefile
|
|
@@ -123,7 +123,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk
|
|
|
|
release_spec: opt
|
|
$(INSTALL_DIR) "$(RELSYSDIR)/src"
|
|
- $(INSTALL_DATA) $(INTERNAL_HRL_FILES) "$(RELSYSDIR)/src"
|
|
+ $(INSTALL_DATA) $(INTERNAL_HRL_FILES) $(TS_HRL_FILES) "$(RELSYSDIR)/src"
|
|
$(INSTALL_DIR) "$(RELSYSDIR)/include"
|
|
$(INSTALL_DATA) $(HRL_FILES) "$(RELSYSDIR)/include"
|
|
$(INSTALL_DIR) "$(RELSYSDIR)/ebin"
|