Blame otp-0006-Do-not-install-erlang-sources.patch

Hans Ulrich Niedermann d00ca9
From: Hans Ulrich Niedermann <hun@n-dimensional.de>
Hans Ulrich Niedermann d00ca9
Date: Mon, 21 Mar 2011 15:41:49 +0100
Hans Ulrich Niedermann 696873
Subject: [PATCH] Do not install erlang sources
Peter Lemenkov 96952b
5203c4
Don't install *.erl, *.xrl, *.yrl, and *.asn1 files at all.
5203c4
Peter Lemenkov 96952b
Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
Hans Ulrich Niedermann d00ca9
Signed-off-by: Hans Ulrich Niedermann <hun@n-dimensional.de>
Peter Lemenkov 96952b
Peter Lemenkov 96952b
diff --git a/erts/preloaded/src/Makefile b/erts/preloaded/src/Makefile
4c0d16
index 27d450c873..d3ea19286e 100644
Peter Lemenkov 96952b
--- a/erts/preloaded/src/Makefile
Peter Lemenkov 96952b
+++ b/erts/preloaded/src/Makefile
4c0d16
@@ -112,8 +112,6 @@ $(APP_TARGET): $(APP_SRC) $(ERL_TOP)/erts/vsn.mk
Peter Lemenkov 96952b
 include $(ERL_TOP)/make/otp_release_targets.mk
Peter Lemenkov 96952b
 
9a9df5
 release_spec: $(APP_TARGET)
61833a
-	$(INSTALL_DIR) "$(RELSYSDIR)/src"
00d9d2
-	$(INSTALL_DATA) $(ERL_FILES) $(BEAM_FILES) $(STUBS_FILES) "$(RELSYSDIR)/src"
61833a
 	$(INSTALL_DIR) "$(RELSYSDIR)/ebin"
9a9df5
 	$(INSTALL_DATA) $(STATIC_TARGET_FILES) $(APP_TARGET) "$(RELSYSDIR)/ebin"
Peter Lemenkov 96952b
 
Peter Lemenkov 96952b
diff --git a/lib/asn1/src/Makefile b/lib/asn1/src/Makefile
e5d275
index ba459f6cd3..5565126214 100644
Peter Lemenkov 96952b
--- a/lib/asn1/src/Makefile
Peter Lemenkov 96952b
+++ b/lib/asn1/src/Makefile
e5d275
@@ -154,7 +154,7 @@ release_spec: opt
61833a
 	$(INSTALL_DIR) "$(RELSYSDIR)/ebin"
61833a
 	$(INSTALL_DATA) $(TARGET_FILES) $(APP_TARGET) $(APPUP_TARGET) "$(RELSYSDIR)/ebin"
61833a
 	$(INSTALL_DIR) "$(RELSYSDIR)/src"
61833a
-	$(INSTALL_DATA)  $(ERL_FILES) $(HRL_FILES) $(APP_SRC) $(APPUP_SRC) "$(RELSYSDIR)/src"
61833a
+	$(INSTALL_DATA) $(HRL_FILES) "$(RELSYSDIR)/src"
61833a
 	$(INSTALL_DIR) "$(RELSYSDIR)/examples"
61833a
 	$(INSTALL_DATA) $(EXAMPLES) "$(RELSYSDIR)/examples"
Peter Lemenkov 96952b
 
Peter Lemenkov 96952b
diff --git a/lib/common_test/src/Makefile b/lib/common_test/src/Makefile
0cc610
index 80eaed70bd..cde0c6823d 100644
Peter Lemenkov 96952b
--- a/lib/common_test/src/Makefile
Peter Lemenkov 96952b
+++ b/lib/common_test/src/Makefile
8bed1f
@@ -152,7 +152,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk
Peter Lemenkov 96952b
 
Peter Lemenkov 96952b
 release_spec: opt
61833a
 	$(INSTALL_DIR) "$(RELSYSDIR)/src"
61833a
-	$(INSTALL_DATA) $(ERL_FILES) $(HRL_FILES) "$(RELSYSDIR)/src"
61833a
+	$(INSTALL_DATA) $(HRL_FILES) "$(RELSYSDIR)/src"
61833a
 	$(INSTALL_DIR) "$(RELSYSDIR)/ebin"
61833a
 	$(INSTALL_DATA) $(TARGET_FILES) "$(RELSYSDIR)/ebin"
61833a
 	$(INSTALL_DIR) "$(RELSYSDIR)/include"
8a7b81
diff --git a/lib/common_test/test_server/Makefile b/lib/common_test/test_server/Makefile
57b0bc
index f015064b39..57f96d2929 100644
8a7b81
--- a/lib/common_test/test_server/Makefile
8a7b81
+++ b/lib/common_test/test_server/Makefile
8a7b81
@@ -86,9 +86,9 @@ include $(ERL_TOP)/make/otp_release_targets.mk
8a7b81
 
8a7b81
 release_tests_spec: opt
8a7b81
 	$(INSTALL_DIR) "$(RELEASE_PATH)/test_server"
8a7b81
-	$(INSTALL_DATA) $(TS_ERL_FILES) $(TS_HRL_FILES) \
8a7b81
+	$(INSTALL_DATA) $(TS_HRL_FILES) \
8a7b81
 		$(TS_TARGET_FILES) \
8a7b81
-		$(AUTOCONF_FILES) $(CONFIG) \
8a7b81
+		$(CONFIG) \
8a7b81
 		"$(RELEASE_PATH)/test_server"
8a7b81
 	$(INSTALL_SCRIPT) $(PROGRAMS) "$(RELEASE_PATH)/test_server"
8a7b81
 
Peter Lemenkov 96952b
diff --git a/lib/compiler/src/Makefile b/lib/compiler/src/Makefile
4c0d16
index 87b0d345f2..db0ea47135 100644
Peter Lemenkov 96952b
--- a/lib/compiler/src/Makefile
Peter Lemenkov 96952b
+++ b/lib/compiler/src/Makefile
4c0d16
@@ -179,8 +179,8 @@ include $(ERL_TOP)/make/otp_release_targets.mk
Peter Lemenkov 96952b
 
Peter Lemenkov 96952b
 release_spec: opt
61833a
 	$(INSTALL_DIR) "$(RELSYSDIR)/src"
Peter Lemenkov 96952b
-	$(INSTALL_DATA) $(ERL_FILES) $(HRL_FILES) $(EXTRA_FILES) \
61833a
-		$(YRL_FILE) "$(RELSYSDIR)/src"
Peter Lemenkov 96952b
+	$(INSTALL_DATA) $(HRL_FILES) $(EXTRA_FILES) \
61833a
+		"$(RELSYSDIR)/src"
61833a
 	$(INSTALL_DIR) "$(RELSYSDIR)/ebin"
61833a
 	$(INSTALL_DATA) $(INSTALL_FILES) "$(RELSYSDIR)/ebin"
Peter Lemenkov 96952b
 
Peter Lemenkov 96952b
diff --git a/lib/crypto/src/Makefile b/lib/crypto/src/Makefile
0cc610
index 1753ba4f36..2cd09475e8 100644
Peter Lemenkov 96952b
--- a/lib/crypto/src/Makefile
Peter Lemenkov 96952b
+++ b/lib/crypto/src/Makefile
e5d275
@@ -81,8 +81,6 @@ docs:
Peter Lemenkov 96952b
 include $(ERL_TOP)/make/otp_release_targets.mk
Peter Lemenkov 96952b
 
Peter Lemenkov 96952b
 release_spec: opt
61833a
-	$(INSTALL_DIR) "$(RELSYSDIR)/src"
61833a
-	$(INSTALL_DATA) $(ERL_FILES) "$(RELSYSDIR)/src"
61833a
 	$(INSTALL_DIR) "$(RELSYSDIR)/ebin"
Peter Lemenkov 96952b
 	$(INSTALL_DATA) $(TARGET_FILES) $(APP_TARGET) \
61833a
 		$(APPUP_TARGET) "$(RELSYSDIR)/ebin"
Peter Lemenkov 96952b
diff --git a/lib/debugger/src/Makefile b/lib/debugger/src/Makefile
e5d275
index 118cb6b758..86722d8767 100644
Peter Lemenkov 96952b
--- a/lib/debugger/src/Makefile
Peter Lemenkov 96952b
+++ b/lib/debugger/src/Makefile
844843
@@ -117,7 +117,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk
Peter Lemenkov 96952b
 
Peter Lemenkov 96952b
 release_spec: opt
61833a
 	$(INSTALL_DIR) "$(RELSYSDIR)/src"
61833a
-	$(INSTALL_DATA) $(ERL_FILES) $(INTERNAL_HRL_FILES) $(TOOLBOX_FILES) "$(RELSYSDIR)/src"
61833a
+	$(INSTALL_DATA) $(INTERNAL_HRL_FILES) $(TOOLBOX_FILES) "$(RELSYSDIR)/src"
61833a
 	$(INSTALL_DIR) "$(RELSYSDIR)/ebin"
61833a
 	$(INSTALL_DATA) $(TARGET_FILES) $(TARGET_TOOLBOX_FILES) "$(RELSYSDIR)/ebin"
Peter Lemenkov 96952b
 
Peter Lemenkov 96952b
diff --git a/lib/dialyzer/src/Makefile b/lib/dialyzer/src/Makefile
4c0d16
index bddd761705..f0c2e7c35b 100644
Peter Lemenkov 96952b
--- a/lib/dialyzer/src/Makefile
Peter Lemenkov 96952b
+++ b/lib/dialyzer/src/Makefile
4c0d16
@@ -160,7 +160,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk
Peter Lemenkov 96952b
 
Peter Lemenkov 96952b
 release_spec: opt
61833a
 	$(INSTALL_DIR) "$(RELSYSDIR)/src"
Peter Lemenkov 96952b
-	$(INSTALL_DATA) $(ERL_FILES) $(HRL_FILES) $(EXTRA_FILES) \
Peter Lemenkov 96952b
+	$(INSTALL_DATA) $(HRL_FILES) $(EXTRA_FILES) \
61833a
 		"$(RELSYSDIR)/src"
61833a
 	$(INSTALL_DIR) "$(RELSYSDIR)/ebin"
61833a
 	$(INSTALL_DATA) $(INSTALL_FILES) "$(RELSYSDIR)/ebin"
5d2c88
diff --git a/lib/diameter/src/Makefile b/lib/diameter/src/Makefile
0cc610
index 98636ed6e2..171846f1e4 100644
5d2c88
--- a/lib/diameter/src/Makefile
5d2c88
+++ b/lib/diameter/src/Makefile
0cc610
@@ -250,11 +250,8 @@ release_spec: opt
5203c4
 	$(MAKE) $(EXAMPLE_DIRS:%/=release_examples_%)
5d2c88
 
5d2c88
 $(TARGET_DIRS:%/=release_src_%): release_src_%:
61833a
-	$(INSTALL_DIR) "$(RELSYSDIR)/src/$*"
5d2c88
-	$(INSTALL_DATA) $(filter $*/%, $(TARGET_MODULES:%=%.erl) \
5d2c88
-	                               $(INTERNAL_HRLS)) \
5d2c88
-	                $(filter $*/%, compiler/$(DICT_YRL).yrl) \
61833a
-	                "$(RELSYSDIR)/src/$*"
5d2c88
+	$(INSTALL_DATA) $(filter $*/%, $(INTERNAL_HRLS)) \
61833a
+	                "$(RELSYSDIR)/src/$*" || true
ebf67f
 
5203c4
 $(EXAMPLE_DIRS:%/=release_examples_%): release_examples_%:
61833a
 	$(INSTALL_DIR) "$(RELSYSDIR)/examples/$*"
Peter Lemenkov 96952b
diff --git a/lib/edoc/src/Makefile b/lib/edoc/src/Makefile
e5d275
index ea2f45dc4c..84af08eb67 100644
Peter Lemenkov 96952b
--- a/lib/edoc/src/Makefile
Peter Lemenkov 96952b
+++ b/lib/edoc/src/Makefile
e5d275
@@ -87,7 +87,7 @@ release_spec: opt
61833a
 	$(INSTALL_DIR) "$(RELSYSDIR)/ebin"
61833a
 	$(INSTALL_DATA) $(OBJECTS) "$(RELSYSDIR)/ebin"
61833a
 	$(INSTALL_DIR) "$(RELSYSDIR)/src"
61833a
-	$(INSTALL_DATA) $(SOURCES) $(HRL_FILES) $(YRL_FILE) "$(RELSYSDIR)/src"
61833a
+	$(INSTALL_DATA) $(HRL_FILES) "$(RELSYSDIR)/src"
Peter Lemenkov 96952b
 
Peter Lemenkov 96952b
 release_docs_spec:
Peter Lemenkov 96952b
 
5203c4
diff --git a/lib/eldap/src/Makefile b/lib/eldap/src/Makefile
57b0bc
index b79a537424..d0b231e5fc 100644
5203c4
--- a/lib/eldap/src/Makefile
5203c4
+++ b/lib/eldap/src/Makefile
8a7b81
@@ -98,13 +98,9 @@ include $(ERL_TOP)/make/otp_release_targets.mk
8a7b81
 
5203c4
 release_spec: opt
61833a
 	$(INSTALL_DIR) "$(RELSYSDIR)/ebin"
8a7b81
-	$(INSTALL_DATA) $(ASN1_HRL) $(TARGET_FILES) $(APP_TARGET) $(APPUP_TARGET) "$(RELSYSDIR)/ebin"
61833a
-	$(INSTALL_DIR) "$(RELSYSDIR)/src"
61833a
-	$(INSTALL_DATA) $(ERL_FILES) "$(RELSYSDIR)/src"
61833a
-	$(INSTALL_DIR) "$(RELSYSDIR)/asn1"
61833a
-	$(INSTALL_DATA) ../asn1/$(ASN1_FILES) "$(RELSYSDIR)/asn1"
8a7b81
+	$(INSTALL_DATA) $(TARGET_FILES) $(APP_TARGET) $(APPUP_TARGET) "$(RELSYSDIR)/ebin"
61833a
 	$(INSTALL_DIR) "$(RELSYSDIR)/include"
8a7b81
-	$(INSTALL_DATA) $(EXTERNAL_HRL_FILES) "$(RELSYSDIR)/include"
8a7b81
+	$(INSTALL_DATA) $(HRL_FILES) "$(RELSYSDIR)/include"
8a7b81
 
8a7b81
 release_docs_spec:
5203c4
 
ebf67f
diff --git a/lib/erl_docgen/src/Makefile b/lib/erl_docgen/src/Makefile
57b0bc
index 82d051e9bb..950fdbe177 100644
ebf67f
--- a/lib/erl_docgen/src/Makefile
ebf67f
+++ b/lib/erl_docgen/src/Makefile
844843
@@ -90,8 +90,6 @@ $(APPUP_TARGET): $(APPUP_SRC) ../vsn.mk
ebf67f
 include $(ERL_TOP)/make/otp_release_targets.mk
ebf67f
 
ebf67f
 release_spec: opt
61833a
-	$(INSTALL_DIR) "$(RELSYSDIR)/src"
61833a
-	$(INSTALL_DATA) $(ERL_FILES) "$(RELSYSDIR)/src"
61833a
 	$(INSTALL_DIR) "$(RELSYSDIR)/ebin"
61833a
 	$(INSTALL_DATA) $(TARGET_FILES) "$(RELSYSDIR)/ebin"
ebf67f
 
Peter Lemenkov 96952b
diff --git a/lib/et/src/Makefile b/lib/et/src/Makefile
57b0bc
index b6347d8b6d..a695d2cc2d 100644
Peter Lemenkov 96952b
--- a/lib/et/src/Makefile
Peter Lemenkov 96952b
+++ b/lib/et/src/Makefile
844843
@@ -109,7 +109,6 @@ release_spec: opt
61833a
 	$(INSTALL_DATA) $(TARGET_FILES) "$(RELSYSDIR)/ebin"
61833a
 	$(INSTALL_DATA) $(APP_TARGET) $(APPUP_TARGET) "$(RELSYSDIR)/ebin"
61833a
 	$(INSTALL_DIR)  "$(RELSYSDIR)/src"
61833a
-	$(INSTALL_DATA) $(ERL_FILES) "$(RELSYSDIR)/src"
61833a
 	$(INSTALL_DATA) $(INTERNAL_HRL_FILES) "$(RELSYSDIR)/src"
61833a
 	$(INSTALL_DIR)  "$(RELSYSDIR)/include"
61833a
 	$(INSTALL_DATA) $(HRL_FILES) "$(RELSYSDIR)/include"
Peter Lemenkov 96952b
diff --git a/lib/eunit/src/Makefile b/lib/eunit/src/Makefile
e5d275
index 3510d3cc93..9179e9b4c2 100644
Peter Lemenkov 96952b
--- a/lib/eunit/src/Makefile
Peter Lemenkov 96952b
+++ b/lib/eunit/src/Makefile
2893cc
@@ -120,7 +120,6 @@ release_spec: opt
61833a
 	$(INSTALL_DIR) "$(RELSYSDIR)/ebin"
61833a
 	$(INSTALL_DATA) $(PARSE_TRANSFORM_BIN) $(OBJECTS) "$(RELSYSDIR)/ebin"
2893cc
 	$(INSTALL_DIR) "$(RELSYSDIR)/src"
61833a
-	$(INSTALL_DATA) $(PARSE_TRANSFORM) $(SOURCES) "$(RELSYSDIR)/src"
2893cc
 	$(INSTALL_DATA) $(INTERNAL_HRL_FILES) "$(RELSYSDIR)/src"
61833a
 	$(INSTALL_DIR) "$(RELSYSDIR)/include"
61833a
 	$(INSTALL_DATA) $(INCLUDE_DELIVERABLES) "$(RELSYSDIR)/include"
Peter Lemenkov 96952b
diff --git a/lib/hipe/cerl/Makefile b/lib/hipe/cerl/Makefile
4c0d16
index 5c367b5b77..b7a85ba115 100644
Peter Lemenkov 96952b
--- a/lib/hipe/cerl/Makefile
Peter Lemenkov 96952b
+++ b/lib/hipe/cerl/Makefile
4c0d16
@@ -105,7 +105,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk
Peter Lemenkov 96952b
 
Peter Lemenkov 96952b
 release_spec: opt
61833a
 	$(INSTALL_DIR) "$(RELSYSDIR)/cerl"
61833a
-	$(INSTALL_DATA) $(ERL_FILES) $(HRL_FILES) "$(RELSYSDIR)/cerl"
61833a
+	$(INSTALL_DATA) $(HRL_FILES) "$(RELSYSDIR)/cerl"
61833a
 	$(INSTALL_DIR) "$(RELSYSDIR)/ebin"
61833a
 	$(INSTALL_DATA) $(TARGET_FILES) "$(RELSYSDIR)/ebin"
Peter Lemenkov 96952b
 
Peter Lemenkov 96952b
diff --git a/lib/hipe/flow/Makefile b/lib/hipe/flow/Makefile
57b0bc
index d883eecf36..3119bc4638 100644
Peter Lemenkov 96952b
--- a/lib/hipe/flow/Makefile
Peter Lemenkov 96952b
+++ b/lib/hipe/flow/Makefile
844843
@@ -102,7 +102,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk
Peter Lemenkov 96952b
 
Peter Lemenkov 96952b
 release_spec: opt
61833a
 	$(INSTALL_DIR) "$(RELSYSDIR)/flow"
61833a
-	$(INSTALL_DATA) $(ERL_FILES) $(HRL_FILES) $(INC_FILES) "$(RELSYSDIR)/flow"
61833a
+	$(INSTALL_DATA) $(HRL_FILES) $(INC_FILES) "$(RELSYSDIR)/flow"
61833a
 	$(INSTALL_DIR) "$(RELSYSDIR)/ebin"
61833a
 	$(INSTALL_DATA) $(TARGET_FILES) "$(RELSYSDIR)/ebin"
Peter Lemenkov 96952b
 
Peter Lemenkov 96952b
diff --git a/lib/hipe/icode/Makefile b/lib/hipe/icode/Makefile
57b0bc
index b220bc16a0..d4073277be 100644
Peter Lemenkov 96952b
--- a/lib/hipe/icode/Makefile
Peter Lemenkov 96952b
+++ b/lib/hipe/icode/Makefile
844843
@@ -120,7 +120,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk
Peter Lemenkov 96952b
 
Peter Lemenkov 96952b
 release_spec: opt
61833a
 	$(INSTALL_DIR) "$(RELSYSDIR)/icode"
61833a
-	$(INSTALL_DATA) $(ERL_FILES) $(HRL_FILES) "$(RELSYSDIR)/icode"
61833a
+	$(INSTALL_DATA) $(HRL_FILES) "$(RELSYSDIR)/icode"
61833a
 	$(INSTALL_DIR) "$(RELSYSDIR)/ebin"
61833a
 	$(INSTALL_DATA) $(TARGET_FILES) "$(RELSYSDIR)/ebin"
Peter Lemenkov 96952b
 
eeecf7
diff --git a/lib/hipe/llvm/Makefile b/lib/hipe/llvm/Makefile
4c0d16
index 9f7a2def6d..def1b4be52 100644
eeecf7
--- a/lib/hipe/llvm/Makefile
eeecf7
+++ b/lib/hipe/llvm/Makefile
4c0d16
@@ -104,7 +104,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk
eeecf7
 
eeecf7
 release_spec: opt
eeecf7
 	$(INSTALL_DIR) $(RELSYSDIR)/llvm
eeecf7
-	$(INSTALL_DATA) $(ERL_FILES) $(HRL_FILES) $(RELSYSDIR)/llvm
eeecf7
+	$(INSTALL_DATA) $(HRL_FILES) $(RELSYSDIR)/llvm
eeecf7
 	$(INSTALL_DIR) $(RELSYSDIR)/ebin
eeecf7
 	$(INSTALL_DATA) $(TARGET_FILES) $(RELSYSDIR)/ebin
eeecf7
 
Peter Lemenkov 96952b
diff --git a/lib/hipe/main/Makefile b/lib/hipe/main/Makefile
57b0bc
index 8ef31dbb46..80d28819f2 100644
Peter Lemenkov 96952b
--- a/lib/hipe/main/Makefile
Peter Lemenkov 96952b
+++ b/lib/hipe/main/Makefile
844843
@@ -118,7 +118,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk
Peter Lemenkov 96952b
 release_spec: opt
61833a
 	$(INSTALL_DATA) ../vsn.mk "$(RELSYSDIR)"
61833a
 	$(INSTALL_DIR) "$(RELSYSDIR)/main"
61833a
-	$(INSTALL_DATA) $(ERL_FILES) $(HRL_FILES) "$(RELSYSDIR)/main"
61833a
+	$(INSTALL_DATA) $(HRL_FILES) "$(RELSYSDIR)/main"
61833a
 	$(INSTALL_DIR) "$(RELSYSDIR)/ebin"
61833a
 	$(INSTALL_DATA) $(TARGET_FILES) "$(RELSYSDIR)/ebin"
Peter Lemenkov 96952b
 
Peter Lemenkov 96952b
diff --git a/lib/hipe/misc/Makefile b/lib/hipe/misc/Makefile
e5d275
index e5033e444b..74a444b386 100644
Peter Lemenkov 96952b
--- a/lib/hipe/misc/Makefile
Peter Lemenkov 96952b
+++ b/lib/hipe/misc/Makefile
844843
@@ -102,7 +102,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk
Peter Lemenkov 96952b
 
Peter Lemenkov 96952b
 release_spec: opt
61833a
 	$(INSTALL_DIR) "$(RELSYSDIR)/misc"
61833a
-	$(INSTALL_DATA) $(ERL_FILES) $(HRL_FILES) "$(RELSYSDIR)/misc"
61833a
+	$(INSTALL_DATA) $(HRL_FILES) "$(RELSYSDIR)/misc"
61833a
 	$(INSTALL_DIR) "$(RELSYSDIR)/ebin"
61833a
 	$(INSTALL_DATA) $(TARGET_FILES) "$(RELSYSDIR)/ebin"
Peter Lemenkov 96952b
 
Peter Lemenkov 96952b
diff --git a/lib/hipe/rtl/Makefile b/lib/hipe/rtl/Makefile
4c0d16
index 0c0f6e24f5..fcffc1f8b5 100644
Peter Lemenkov 96952b
--- a/lib/hipe/rtl/Makefile
Peter Lemenkov 96952b
+++ b/lib/hipe/rtl/Makefile
4c0d16
@@ -108,7 +108,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk
Peter Lemenkov 96952b
 
Peter Lemenkov 96952b
 release_spec: opt
61833a
 	$(INSTALL_DIR) "$(RELSYSDIR)/rtl"
61833a
-	$(INSTALL_DATA) $(ERL_FILES) $(HRL_FILES) "$(RELSYSDIR)/rtl"
61833a
+	$(INSTALL_DATA) $(HRL_FILES) "$(RELSYSDIR)/rtl"
61833a
 	$(INSTALL_DIR) "$(RELSYSDIR)/ebin"
61833a
 	$(INSTALL_DATA) $(TARGET_FILES) "$(RELSYSDIR)/ebin"
Peter Lemenkov 96952b
 
Peter Lemenkov 96952b
diff --git a/lib/hipe/util/Makefile b/lib/hipe/util/Makefile
e5d275
index 20b1c3bf50..40c642a441 100644
Peter Lemenkov 96952b
--- a/lib/hipe/util/Makefile
Peter Lemenkov 96952b
+++ b/lib/hipe/util/Makefile
844843
@@ -50,7 +50,6 @@ HIPE_MODULES =
Peter Lemenkov 96952b
 endif
e5d275
 MODULES = hipe_timing hipe_dot hipe_digraph hipe_dsets $(HIPE_MODULES)
Peter Lemenkov 96952b
 
Peter Lemenkov 96952b
-HRL_FILES=
Peter Lemenkov 96952b
 ERL_FILES= $(MODULES:%=%.erl)
Peter Lemenkov 96952b
 TARGET_FILES= $(MODULES:%=$(EBIN)/%.$(EMULATOR))
Peter Lemenkov 96952b
 DOC_FILES= $(MODULES:%=$(DOCS)/%.html)
844843
@@ -104,8 +103,6 @@ $(DOCS)/%.html:%.erl
70bf32
 include $(ERL_TOP)/make/otp_release_targets.mk
Peter Lemenkov 96952b
 
Peter Lemenkov 96952b
 release_spec: opt
70bf32
-	$(INSTALL_DIR) "$(RELSYSDIR)/util"
61833a
-	$(INSTALL_DATA) $(ERL_FILES) $(HRL_FILES) "$(RELSYSDIR)/util"
61833a
 	$(INSTALL_DIR) "$(RELSYSDIR)/ebin"
61833a
 	$(INSTALL_DATA) $(TARGET_FILES) "$(RELSYSDIR)/ebin"
Peter Lemenkov 96952b
 
Peter Lemenkov 96952b
diff --git a/lib/inets/src/http_client/Makefile b/lib/inets/src/http_client/Makefile
57b0bc
index a1c1f36b70..f2eb86f7ac 100644
Peter Lemenkov 96952b
--- a/lib/inets/src/http_client/Makefile
Peter Lemenkov 96952b
+++ b/lib/inets/src/http_client/Makefile
844843
@@ -92,7 +92,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk
Peter Lemenkov 96952b
 release_spec: opt
61833a
 	$(INSTALL_DIR)  "$(RELSYSDIR)/src"
61833a
 	$(INSTALL_DIR)  "$(RELSYSDIR)/src/http_client"
61833a
-	$(INSTALL_DATA) $(HRL_FILES) $(ERL_FILES) "$(RELSYSDIR)/src/http_client"
61833a
+	$(INSTALL_DATA) $(HRL_FILES) "$(RELSYSDIR)/src/http_client"
61833a
 	$(INSTALL_DIR)  "$(RELSYSDIR)/ebin"
61833a
 	$(INSTALL_DATA) $(TARGET_FILES) "$(RELSYSDIR)/ebin"
Peter Lemenkov 96952b
 
Peter Lemenkov 96952b
diff --git a/lib/inets/src/http_lib/Makefile b/lib/inets/src/http_lib/Makefile
57b0bc
index 8248e37c44..1f1b23184b 100644
Peter Lemenkov 96952b
--- a/lib/inets/src/http_lib/Makefile
Peter Lemenkov 96952b
+++ b/lib/inets/src/http_lib/Makefile
844843
@@ -90,7 +90,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk
Peter Lemenkov 96952b
 release_spec: opt
61833a
 	$(INSTALL_DIR)  "$(RELSYSDIR)/src"
61833a
 	$(INSTALL_DIR)  "$(RELSYSDIR)/src/http_lib"
61833a
-	$(INSTALL_DATA) $(HRL_FILES) $(ERL_FILES) "$(RELSYSDIR)/src/http_lib"
61833a
+	$(INSTALL_DATA) $(HRL_FILES) "$(RELSYSDIR)/src/http_lib"
61833a
 	$(INSTALL_DIR)  "$(RELSYSDIR)/ebin"
61833a
 	$(INSTALL_DATA) $(TARGET_FILES) "$(RELSYSDIR)/ebin"
Peter Lemenkov 96952b
 
Peter Lemenkov 96952b
diff --git a/lib/inets/src/http_server/Makefile b/lib/inets/src/http_server/Makefile
57b0bc
index 1c05d454a5..88f9f62d3b 100644
Peter Lemenkov 96952b
--- a/lib/inets/src/http_server/Makefile
Peter Lemenkov 96952b
+++ b/lib/inets/src/http_server/Makefile
844843
@@ -135,7 +135,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk
Peter Lemenkov 96952b
 release_spec: opt
61833a
 	$(INSTALL_DIR)  "$(RELSYSDIR)/src"
61833a
 	$(INSTALL_DIR)  "$(RELSYSDIR)/src/http_server"
61833a
-	$(INSTALL_DATA) $(HRL_FILES) $(ERL_FILES) "$(RELSYSDIR)/src/http_server"
61833a
+	$(INSTALL_DATA) $(HRL_FILES) "$(RELSYSDIR)/src/http_server"
61833a
 	$(INSTALL_DIR)  "$(RELSYSDIR)/ebin"
844843
 	$(INSTALL_DATA) $(TARGET_FILES) $(BEHAVIOUR_TARGET_FILES) "$(RELSYSDIR)/ebin"
Peter Lemenkov 96952b
 
Peter Lemenkov 96952b
diff --git a/lib/inets/src/inets_app/Makefile b/lib/inets/src/inets_app/Makefile
0cc610
index ec1ae70305..88c084ef58 100644
Peter Lemenkov 96952b
--- a/lib/inets/src/inets_app/Makefile
Peter Lemenkov 96952b
+++ b/lib/inets/src/inets_app/Makefile
0cc610
@@ -116,7 +116,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk
Peter Lemenkov 96952b
 release_spec: opt
61833a
 	$(INSTALL_DIR)  "$(RELSYSDIR)/src"
61833a
 	$(INSTALL_DIR)  "$(RELSYSDIR)/src/inets_app"
61833a
-	$(INSTALL_DATA) $(INTERNAL_HRL_FILES) $(ERL_FILES) "$(RELSYSDIR)/src/inets_app"
61833a
+	$(INSTALL_DATA) $(INTERNAL_HRL_FILES) "$(RELSYSDIR)/src/inets_app"
61833a
 	$(INSTALL_DIR)  "$(RELSYSDIR)/include"
61833a
 	$(INSTALL_DATA) $(EXTERNAL_HRL_FILES) "$(RELSYSDIR)/include"
61833a
 	$(INSTALL_DIR)  "$(RELSYSDIR)/ebin"
Peter Lemenkov 96952b
diff --git a/lib/kernel/src/Makefile b/lib/kernel/src/Makefile
4c0d16
index fcb599859b..14f82f9ea4 100644
Peter Lemenkov 96952b
--- a/lib/kernel/src/Makefile
Peter Lemenkov 96952b
+++ b/lib/kernel/src/Makefile
4c0d16
@@ -228,7 +228,6 @@ include $(ERL_TOP)/make/otp_release_targets.mk
Peter Lemenkov 96952b
 
Peter Lemenkov 96952b
 release_spec: opt
61833a
 	$(INSTALL_DIR) "$(RELSYSDIR)/src"
61833a
-	$(INSTALL_DATA) $(ERL_FILES) "$(RELSYSDIR)/src"
61833a
 	$(INSTALL_DATA) $(INTERNAL_HRL_FILES) "$(RELSYSDIR)/src"
61833a
 	$(INSTALL_DIR) "$(RELSYSDIR)/include"
61833a
 	$(INSTALL_DATA) $(HRL_FILES) "$(RELSYSDIR)/include"
Peter Lemenkov 96952b
diff --git a/lib/megaco/src/app/Makefile b/lib/megaco/src/app/Makefile
57b0bc
index ab45548099..5c7a7f0be9 100644
Peter Lemenkov 96952b
--- a/lib/megaco/src/app/Makefile
Peter Lemenkov 96952b
+++ b/lib/megaco/src/app/Makefile
844843
@@ -114,7 +114,7 @@ release_spec: opt
61833a
 	$(INSTALL_DATA) $(APP_TARGET) $(APPUP_TARGET) "$(RELSYSDIR)/ebin"
61833a
 	$(INSTALL_DIR)  "$(RELSYSDIR)/src"
61833a
 	$(INSTALL_DIR)  "$(RELSYSDIR)/src/app"
61833a
-	$(INSTALL_DATA) $(ERL_FILES) $(INTERNAL_HRL_FILES) "$(RELSYSDIR)/src/app"
61833a
+	$(INSTALL_DATA) $(INTERNAL_HRL_FILES) "$(RELSYSDIR)/src/app"
61833a
 	$(INSTALL_DIR)  "$(RELSYSDIR)/include"
61833a
 	$(INSTALL_DATA) $(EXTERNAL_HRL_FILES) "$(RELSYSDIR)/include"
Peter Lemenkov 96952b
 
Peter Lemenkov 96952b
diff --git a/lib/megaco/src/binary/Makefile b/lib/megaco/src/binary/Makefile
57b0bc
index b9643669f6..5b5a4cf482 100644
Peter Lemenkov 96952b
--- a/lib/megaco/src/binary/Makefile
Peter Lemenkov 96952b
+++ b/lib/megaco/src/binary/Makefile
844843
@@ -176,7 +176,7 @@ release_spec: opt
61833a
 	$(INSTALL_DATA) $(TARGET_FILES) "$(RELSYSDIR)/ebin"
61833a
 	$(INSTALL_DIR)  "$(RELSYSDIR)/src"
61833a
 	$(INSTALL_DIR)  "$(RELSYSDIR)/src/binary"
61833a
-	$(INSTALL_DATA) $(ERL_FILES) $(HRL_FILES) $(ASN1_FILES) "$(RELSYSDIR)/src/binary"
61833a
+	$(INSTALL_DATA) $(HRL_FILES) "$(RELSYSDIR)/src/binary"
Peter Lemenkov 96952b
 
Peter Lemenkov 96952b
 
Peter Lemenkov 96952b
 release_docs_spec:
Peter Lemenkov 96952b
diff --git a/lib/megaco/src/engine/Makefile b/lib/megaco/src/engine/Makefile
57b0bc
index 869b516b05..fa7d774d84 100644
Peter Lemenkov 96952b
--- a/lib/megaco/src/engine/Makefile
Peter Lemenkov 96952b
+++ b/lib/megaco/src/engine/Makefile
844843
@@ -102,7 +102,7 @@ release_spec: opt
61833a
 	$(INSTALL_DATA) $(BEHAVIOUR_TARGET_FILES) $(TARGET_FILES) "$(RELSYSDIR)/ebin"
61833a
 	$(INSTALL_DIR)  "$(RELSYSDIR)/src"
61833a
 	$(INSTALL_DIR)  "$(RELSYSDIR)/src/engine"
61833a
-	$(INSTALL_DATA) $(ERL_FILES) $(INTERNAL_HRL_FILES) "$(RELSYSDIR)/src/engine"
61833a
+	$(INSTALL_DATA) $(INTERNAL_HRL_FILES) "$(RELSYSDIR)/src/engine"
61833a
 	$(INSTALL_DIR)  "$(RELSYSDIR)/include"
Peter Lemenkov 96952b
 
Peter Lemenkov 96952b
 
Peter Lemenkov 96952b
diff --git a/lib/megaco/src/flex/Makefile.in b/lib/megaco/src/flex/Makefile.in
4c0d16
index 753925ed77..c6b68e225f 100644
Peter Lemenkov 96952b
--- a/lib/megaco/src/flex/Makefile.in
Peter Lemenkov 96952b
+++ b/lib/megaco/src/flex/Makefile.in
4c0d16
@@ -248,7 +248,6 @@ release_spec: opt
61833a
 	$(INSTALL_DIR)  "$(RELSYSDIR)/src/flex"
61833a
 	$(INSTALL_DIR)  "$(RELSYSDIR)/priv/lib"
61833a
 	$(INSTALL_DIR)  "$(RELSYSDIR)/include"
61833a
-	$(INSTALL_DATA) $(ERL_FILES) $(INTERNAL_HRL_FILES) "$(RELSYSDIR)/src/flex"
844843
 	$(INSTALL_DATA) $(TARGET_FILES) "$(RELSYSDIR)/ebin"
Peter Lemenkov 96952b
 ifeq ($(ENABLE_MEGACO_FLEX_SCANNER),true)
61833a
 	$(INSTALL_DATA) $(FLEX_FILES) "$(RELSYSDIR)/src/flex"
Peter Lemenkov 96952b
diff --git a/lib/megaco/src/tcp/Makefile b/lib/megaco/src/tcp/Makefile
57b0bc
index d07db3fa4b..7f421d24cc 100644
Peter Lemenkov 96952b
--- a/lib/megaco/src/tcp/Makefile
Peter Lemenkov 96952b
+++ b/lib/megaco/src/tcp/Makefile
844843
@@ -94,7 +94,7 @@ release_spec: opt
61833a
 	$(INSTALL_DATA) $(TARGET_FILES) "$(RELSYSDIR)/ebin"
61833a
 	$(INSTALL_DIR)  "$(RELSYSDIR)/src"
61833a
 	$(INSTALL_DIR)  "$(RELSYSDIR)/src/tcp"
61833a
-	$(INSTALL_DATA) $(ERL_FILES) $(INTERNAL_HRL_FILES) "$(RELSYSDIR)/src/tcp"
61833a
+	$(INSTALL_DATA) $(INTERNAL_HRL_FILES) "$(RELSYSDIR)/src/tcp"
Peter Lemenkov 96952b
 
Peter Lemenkov 96952b
 
Peter Lemenkov 96952b
 release_docs_spec:
Peter Lemenkov 96952b
diff --git a/lib/megaco/src/text/Makefile b/lib/megaco/src/text/Makefile
57b0bc
index 8e7e82b276..2a118d24e3 100644
Peter Lemenkov 96952b
--- a/lib/megaco/src/text/Makefile
Peter Lemenkov 96952b
+++ b/lib/megaco/src/text/Makefile
844843
@@ -135,7 +135,7 @@ release_spec: opt
61833a
 	$(INSTALL_DATA) $(BEAM_TARGET_FILES) "$(RELSYSDIR)/ebin"
61833a
 	$(INSTALL_DIR)  "$(RELSYSDIR)/src"
61833a
 	$(INSTALL_DIR)  "$(RELSYSDIR)/src/text"
61833a
-	$(INSTALL_DATA) $(ERL_FILES) $(INTERNAL_YRL_FILES) $(INTERNAL_HRL_FILES) "$(RELSYSDIR)/src/text"
61833a
+	$(INSTALL_DATA) $(INTERNAL_HRL_FILES) "$(RELSYSDIR)/src/text"
Peter Lemenkov 96952b
 
Peter Lemenkov 96952b
 
Peter Lemenkov 96952b
 release_docs_spec:
Peter Lemenkov 96952b
diff --git a/lib/megaco/src/udp/Makefile b/lib/megaco/src/udp/Makefile
57b0bc
index 028a63e98e..9e11e9bfb2 100644
Peter Lemenkov 96952b
--- a/lib/megaco/src/udp/Makefile
Peter Lemenkov 96952b
+++ b/lib/megaco/src/udp/Makefile
844843
@@ -94,7 +94,7 @@ release_spec: opt
61833a
 	$(INSTALL_DATA) $(TARGET_FILES) "$(RELSYSDIR)/ebin"
61833a
 	$(INSTALL_DIR)  "$(RELSYSDIR)/src"
61833a
 	$(INSTALL_DIR)  "$(RELSYSDIR)/src/udp"
61833a
-	$(INSTALL_DATA) $(ERL_FILES) $(INTERNAL_HRL_FILES) "$(RELSYSDIR)/src/udp"
61833a
+	$(INSTALL_DATA) $(INTERNAL_HRL_FILES) "$(RELSYSDIR)/src/udp"
Peter Lemenkov 96952b
 
Peter Lemenkov 96952b
 
Peter Lemenkov 96952b
 release_docs_spec:
Peter Lemenkov 96952b
diff --git a/lib/mnesia/src/Makefile b/lib/mnesia/src/Makefile
e5d275
index 7d316df263..60fdefb5d0 100644
Peter Lemenkov 96952b
--- a/lib/mnesia/src/Makefile
Peter Lemenkov 96952b
+++ b/lib/mnesia/src/Makefile
e5d275
@@ -134,7 +134,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk
Peter Lemenkov 96952b
 
Peter Lemenkov 96952b
 release_spec: opt
61833a
 	$(INSTALL_DIR) "$(RELSYSDIR)/src"
61833a
-	$(INSTALL_DATA) $(HRL_FILES) $(ERL_FILES) "$(RELSYSDIR)/src"
61833a
+	$(INSTALL_DATA) $(HRL_FILES) "$(RELSYSDIR)/src"
61833a
 	$(INSTALL_DIR) "$(RELSYSDIR)/ebin"
61833a
 	$(INSTALL_DATA) $(TARGET_FILES) "$(RELSYSDIR)/ebin"
Peter Lemenkov 96952b
 
Peter Lemenkov 96952b
diff --git a/lib/observer/src/Makefile b/lib/observer/src/Makefile
0cc610
index f9f239db37..dd061f29f4 100644
Peter Lemenkov 96952b
--- a/lib/observer/src/Makefile
Peter Lemenkov 96952b
+++ b/lib/observer/src/Makefile
0cc610
@@ -150,7 +150,6 @@ include $(ERL_TOP)/make/otp_release_targets.mk
Peter Lemenkov 96952b
 
Peter Lemenkov 96952b
 release_spec: opt
61833a
 	$(INSTALL_DIR) "$(RELSYSDIR)/src"
61833a
-	$(INSTALL_DATA) $(ERL_FILES) "$(RELSYSDIR)/src"
61833a
 	$(INSTALL_DATA) $(INTERNAL_HRL_FILES) "$(RELSYSDIR)/src"
61833a
 	$(INSTALL_DIR) "$(RELSYSDIR)/examples"
61833a
 	$(INSTALL_DATA) $(EXAMPLE_FILES) "$(RELSYSDIR)/examples"
Peter Lemenkov 96952b
diff --git a/lib/odbc/src/Makefile b/lib/odbc/src/Makefile
57b0bc
index 7ca59495ed..a52ade2fe3 100644
Peter Lemenkov 96952b
--- a/lib/odbc/src/Makefile
Peter Lemenkov 96952b
+++ b/lib/odbc/src/Makefile
844843
@@ -110,7 +110,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk
Peter Lemenkov 96952b
 
Peter Lemenkov 96952b
 release_spec: opt
61833a
 	$(INSTALL_DIR) "$(RELSYSDIR)/src"
61833a
-	$(INSTALL_DATA) $(ERL_FILES) $(HRL_FILES) "$(RELSYSDIR)/src"
61833a
+	$(INSTALL_DATA) $(HRL_FILES) "$(RELSYSDIR)/src"
61833a
 	$(INSTALL_DIR) "$(RELSYSDIR)/include"
61833a
 	$(INSTALL_DATA) $(EXT_HRL_FILES) "$(RELSYSDIR)/include"
61833a
 	$(INSTALL_DIR) "$(RELSYSDIR)/ebin"
Peter Lemenkov 96952b
diff --git a/lib/os_mon/src/Makefile b/lib/os_mon/src/Makefile
4c0d16
index 5963351b0f..22c41137d0 100644
Peter Lemenkov 96952b
--- a/lib/os_mon/src/Makefile
Peter Lemenkov 96952b
+++ b/lib/os_mon/src/Makefile
844843
@@ -105,7 +105,6 @@ include $(ERL_TOP)/make/otp_release_targets.mk
Peter Lemenkov 96952b
 
Peter Lemenkov 96952b
 release_spec: opt
61833a
 	$(INSTALL_DIR) "$(RELSYSDIR)/src"
61833a
-	$(INSTALL_DATA) $(ERL_FILES) "$(RELSYSDIR)/src"
61833a
 	$(INSTALL_DATA) $(HRL_FILES) "$(RELSYSDIR)/src"
61833a
 	$(INSTALL_DIR) "$(RELSYSDIR)/ebin"
61833a
 	$(INSTALL_DATA) $(TARGET_FILES) "$(RELSYSDIR)/ebin"
Peter Lemenkov 96952b
diff --git a/lib/parsetools/src/Makefile b/lib/parsetools/src/Makefile
e5d275
index ba206904ec..281cc8657c 100644
Peter Lemenkov 96952b
--- a/lib/parsetools/src/Makefile
Peter Lemenkov 96952b
+++ b/lib/parsetools/src/Makefile
844843
@@ -91,8 +91,6 @@ $(APPUP_TARGET): $(APPUP_SRC) ../vsn.mk
Peter Lemenkov 96952b
 include $(ERL_TOP)/make/otp_release_targets.mk
Peter Lemenkov 96952b
 
Peter Lemenkov 96952b
 release_spec: opt
61833a
-	$(INSTALL_DIR) "$(RELSYSDIR)/src"
61833a
-	$(INSTALL_DATA) $(ERL_FILES) "$(RELSYSDIR)/src"
61833a
 	$(INSTALL_DIR) "$(RELSYSDIR)/ebin"
61833a
 	$(INSTALL_DATA) $(TARGET_FILES) "$(RELSYSDIR)/ebin"
61833a
 	$(INSTALL_DIR) "$(RELSYSDIR)/include"
0ba741
diff --git a/lib/public_key/asn1/Makefile b/lib/public_key/asn1/Makefile
4c0d16
index a920ea87ea..7672ef3470 100644
0ba741
--- a/lib/public_key/asn1/Makefile
0ba741
+++ b/lib/public_key/asn1/Makefile
844843
@@ -96,8 +96,8 @@ release_spec: opt
0ba741
 	$(INSTALL_DIR) "$(RELSYSDIR)/include"
0ba741
 	$(INSTALL_DATA) $(HRL_FILES) "$(RELSYSDIR)/include"
0ba741
 	$(INSTALL_DIR) "$(RELSYSDIR)/asn1"
0ba741
-	$(INSTALL_DATA) $(ASN_ASNS) $(ASN_ERLS) $(ASN_HRLS) $(ASN_CONFIGS) \
0ba741
-		 $(GEN_ERLS) "$(RELSYSDIR)/asn1"
0ba741
+	$(INSTALL_DATA) $(ASN_ASNS) $(ASN_HRLS) $(ASN_CONFIGS) \
0ba741
+		 "$(RELSYSDIR)/asn1"
0ba741
 	$(INSTALL_DIR) "$(RELSYSDIR)/ebin"
0ba741
 	$(INSTALL_DATA) $(TARGET_FILES) "$(RELSYSDIR)/ebin"
0ba741
 
Peter Lemenkov 96952b
diff --git a/lib/public_key/src/Makefile b/lib/public_key/src/Makefile
57b0bc
index e61390bce3..6ed6c2cf9f 100644
Peter Lemenkov 96952b
--- a/lib/public_key/src/Makefile
Peter Lemenkov 96952b
+++ b/lib/public_key/src/Makefile
844843
@@ -109,8 +109,6 @@ $(APPUP_TARGET):	$(APPUP_SRC) ../vsn.mk
Peter Lemenkov 96952b
 include $(ERL_TOP)/make/otp_release_targets.mk
Peter Lemenkov 96952b
 
Peter Lemenkov 96952b
 release_spec: opt
61833a
-	$(INSTALL_DIR) "$(RELSYSDIR)/src"
61833a
-	$(INSTALL_DATA) $(INTERNAL_HRL_FILES) $(ERL_FILES) "$(RELSYSDIR)/src"
61833a
 	$(INSTALL_DIR) "$(RELSYSDIR)/include"
61833a
 	$(INSTALL_DATA) $(HRL_FILES) "$(RELSYSDIR)/include"
61833a
 	$(INSTALL_DIR) "$(RELSYSDIR)/ebin"
Peter Lemenkov 96952b
diff --git a/lib/reltool/src/Makefile b/lib/reltool/src/Makefile
57b0bc
index 4bddee4664..c714255548 100644
Peter Lemenkov 96952b
--- a/lib/reltool/src/Makefile
Peter Lemenkov 96952b
+++ b/lib/reltool/src/Makefile
844843
@@ -100,7 +100,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk
Peter Lemenkov 96952b
 
Peter Lemenkov 96952b
 release_spec: opt
61833a
 	$(INSTALL_DIR) "$(RELSYSDIR)/src"
61833a
-	$(INSTALL_DATA) $(INTERNAL_HRL_FILES) $(ERL_FILES) "$(RELSYSDIR)/src"
61833a
+	$(INSTALL_DATA) $(INTERNAL_HRL_FILES) "$(RELSYSDIR)/src"
61833a
 	$(INSTALL_DIR) "$(RELSYSDIR)/ebin"
61833a
 	$(INSTALL_DATA) $(TARGET_FILES) "$(RELSYSDIR)/ebin"
61833a
 	$(INSTALL_DATA) $(APP_TARGET) $(APPUP_TARGET) "$(RELSYSDIR)/ebin"
Peter Lemenkov 96952b
diff --git a/lib/runtime_tools/src/Makefile b/lib/runtime_tools/src/Makefile
0cc610
index 76286c5499..d921f9f294 100644
Peter Lemenkov 96952b
--- a/lib/runtime_tools/src/Makefile
Peter Lemenkov 96952b
+++ b/lib/runtime_tools/src/Makefile
0cc610
@@ -99,8 +99,6 @@ docs:
Peter Lemenkov 96952b
 include $(ERL_TOP)/make/otp_release_targets.mk
Peter Lemenkov 96952b
 
Peter Lemenkov 96952b
 release_spec: opt
61833a
-	$(INSTALL_DIR) "$(RELSYSDIR)/src"
61833a
-	$(INSTALL_DATA) $(ERL_FILES) "$(RELSYSDIR)/src"
61833a
 	$(INSTALL_DIR) "$(RELSYSDIR)/include"
61833a
 	$(INSTALL_DATA) $(HRL_FILES) "$(RELSYSDIR)/include"
61833a
 	$(INSTALL_DIR) "$(RELSYSDIR)/examples"
Peter Lemenkov 96952b
diff --git a/lib/sasl/src/Makefile b/lib/sasl/src/Makefile
4c0d16
index fd62588f5c..07373bfa78 100644
Peter Lemenkov 96952b
--- a/lib/sasl/src/Makefile
Peter Lemenkov 96952b
+++ b/lib/sasl/src/Makefile
4c0d16
@@ -97,7 +97,6 @@ include $(ERL_TOP)/make/otp_release_targets.mk
Peter Lemenkov 96952b
 
Peter Lemenkov 96952b
 release_spec: opt
61833a
 	$(INSTALL_DIR) "$(RELSYSDIR)/src"
61833a
-	$(INSTALL_DATA) $(ERL_FILES) "$(RELSYSDIR)/src"
61833a
 	$(INSTALL_DATA) $(INTERNAL_HRL_FILES) "$(RELSYSDIR)/src"
61833a
 	$(INSTALL_DIR) "$(RELSYSDIR)/ebin"
61833a
 	$(INSTALL_DATA) $(TARGET_FILES) "$(RELSYSDIR)/ebin"
Peter Lemenkov 96952b
diff --git a/lib/snmp/src/agent/Makefile b/lib/snmp/src/agent/Makefile
57b0bc
index 2943a4d550..8203e62361 100644
Peter Lemenkov 96952b
--- a/lib/snmp/src/agent/Makefile
Peter Lemenkov 96952b
+++ b/lib/snmp/src/agent/Makefile
844843
@@ -131,7 +131,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk
Peter Lemenkov 96952b
 release_spec: opt
61833a
 	$(INSTALL_DIR) "$(RELSYSDIR)/src"
61833a
 	$(INSTALL_DIR) "$(RELSYSDIR)/src/agent"
61833a
-	$(INSTALL_DATA) $(ERL_FILES) $(HRL_FILES) "$(RELSYSDIR)/src/agent"
61833a
+	$(INSTALL_DATA) $(HRL_FILES) "$(RELSYSDIR)/src/agent"
61833a
 	$(INSTALL_DIR) "$(RELSYSDIR)/ebin"
Peter Lemenkov 96952b
 	$(INSTALL_DATA) $(TARGET_FILES) $(APP_TARGET) $(APPUP_TARGET) \
61833a
 		"$(RELSYSDIR)/ebin"
Peter Lemenkov 96952b
diff --git a/lib/snmp/src/app/Makefile b/lib/snmp/src/app/Makefile
57b0bc
index 6f2b8a4077..bd062a6473 100644
Peter Lemenkov 96952b
--- a/lib/snmp/src/app/Makefile
Peter Lemenkov 96952b
+++ b/lib/snmp/src/app/Makefile
844843
@@ -132,7 +132,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk
Peter Lemenkov 96952b
 release_spec: opt
61833a
 	$(INSTALL_DIR) "$(RELSYSDIR)/src"
61833a
 	$(INSTALL_DIR) "$(RELSYSDIR)/src/app"
61833a
-	$(INSTALL_DATA) $(ERL_FILES) $(HRL_FILES) "$(RELSYSDIR)/src/app"
61833a
+	$(INSTALL_DATA) $(HRL_FILES) "$(RELSYSDIR)/src/app"
61833a
 	$(INSTALL_DIR) "$(RELSYSDIR)/ebin"
Peter Lemenkov 96952b
 	$(INSTALL_DATA) $(TARGET_FILES) $(APP_TARGET) $(APPUP_TARGET) \
61833a
 		"$(RELSYSDIR)/ebin"
Peter Lemenkov 96952b
diff --git a/lib/snmp/src/compile/Makefile b/lib/snmp/src/compile/Makefile
57b0bc
index 4093ffa9ca..18878aa5db 100644
Peter Lemenkov 96952b
--- a/lib/snmp/src/compile/Makefile
Peter Lemenkov 96952b
+++ b/lib/snmp/src/compile/Makefile
844843
@@ -123,7 +123,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk
Peter Lemenkov 96952b
 release_spec: opt
61833a
 	$(INSTALL_DIR) "$(RELSYSDIR)/src"
61833a
 	$(INSTALL_DIR) "$(RELSYSDIR)/src/compiler"
61833a
-	$(INSTALL_DATA) $(ESCRIPT_SRC) $(PARSER_SRC) $(ERL_FILES) $(INTERNAL_HRL_FILES) "$(RELSYSDIR)/src/compiler"
61833a
+	$(INSTALL_DATA) $(INTERNAL_HRL_FILES) "$(RELSYSDIR)/src/compiler"
61833a
 	$(INSTALL_DIR) "$(RELSYSDIR)/ebin"
61833a
 	$(INSTALL_DATA) $(EBIN_FILES) "$(RELSYSDIR)/ebin"
61833a
 	$(INSTALL_DIR) "$(RELSYSDIR)/bin"
Peter Lemenkov 96952b
diff --git a/lib/snmp/src/manager/Makefile b/lib/snmp/src/manager/Makefile
57b0bc
index 0cc87492f1..d203f2846a 100644
Peter Lemenkov 96952b
--- a/lib/snmp/src/manager/Makefile
Peter Lemenkov 96952b
+++ b/lib/snmp/src/manager/Makefile
844843
@@ -114,7 +114,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk
Peter Lemenkov 96952b
 release_spec: opt
61833a
 	$(INSTALL_DIR) "$(RELSYSDIR)/src"
61833a
 	$(INSTALL_DIR) "$(RELSYSDIR)/src/manager"
61833a
-	$(INSTALL_DATA) $(ERL_FILES) $(HRL_FILES) "$(RELSYSDIR)/src/manager"
61833a
+	$(INSTALL_DATA) $(HRL_FILES) "$(RELSYSDIR)/src/manager"
61833a
 	$(INSTALL_DIR) "$(RELSYSDIR)/ebin"
61833a
 	$(INSTALL_DATA) $(TARGET_FILES) "$(RELSYSDIR)/ebin"
61833a
 # 	$(INSTALL_DIR) "$(RELSYSDIR)/include"
Peter Lemenkov 96952b
diff --git a/lib/snmp/src/misc/Makefile b/lib/snmp/src/misc/Makefile
57b0bc
index adc2c4858f..89ce954e99 100644
Peter Lemenkov 96952b
--- a/lib/snmp/src/misc/Makefile
Peter Lemenkov 96952b
+++ b/lib/snmp/src/misc/Makefile
844843
@@ -112,7 +112,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk
Peter Lemenkov 96952b
 release_spec: opt
61833a
 	$(INSTALL_DIR) "$(RELSYSDIR)/src"
61833a
 	$(INSTALL_DIR) "$(RELSYSDIR)/src/misc"
61833a
-	$(INSTALL_DATA) $(ERL_FILES) $(HRL_FILES) "$(RELSYSDIR)/src/misc"
61833a
+	$(INSTALL_DATA) $(HRL_FILES) "$(RELSYSDIR)/src/misc"
61833a
 	$(INSTALL_DIR) "$(RELSYSDIR)/ebin"
61833a
 	$(INSTALL_DATA) $(TARGET_FILES) "$(RELSYSDIR)/ebin"
61833a
 # 	$(INSTALL_DIR) "$(RELSYSDIR)/include"
Peter Lemenkov 96952b
diff --git a/lib/ssh/src/Makefile b/lib/ssh/src/Makefile
0cc610
index 6d64a45112..5b1249ca5b 100644
Peter Lemenkov 96952b
--- a/lib/ssh/src/Makefile
Peter Lemenkov 96952b
+++ b/lib/ssh/src/Makefile
0cc610
@@ -139,7 +139,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk
Peter Lemenkov 96952b
 
Peter Lemenkov 96952b
 release_spec: opt
61833a
 	$(INSTALL_DIR) "$(RELSYSDIR)/src"
61833a
-	$(INSTALL_DATA) $(INTERNAL_HRL_FILES) $(ERL_FILES) "$(RELSYSDIR)/src"
61833a
+	$(INSTALL_DATA) $(INTERNAL_HRL_FILES) "$(RELSYSDIR)/src"
61833a
 	$(INSTALL_DIR) "$(RELSYSDIR)/ebin"
61833a
 	$(INSTALL_DATA) $(BEHAVIOUR_TARGET_FILES) $(TARGET_FILES) $(APP_TARGET) \
61833a
 	$(APPUP_TARGET) "$(RELSYSDIR)/ebin"
Peter Lemenkov 96952b
diff --git a/lib/ssl/src/Makefile b/lib/ssl/src/Makefile
4c0d16
index 8dc76f2638..3c2f73f5be 100644
Peter Lemenkov 96952b
--- a/lib/ssl/src/Makefile
Peter Lemenkov 96952b
+++ b/lib/ssl/src/Makefile
4c0d16
@@ -183,7 +183,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk
Peter Lemenkov 96952b
 
Peter Lemenkov 96952b
 release_spec: opt
61833a
 	$(INSTALL_DIR) "$(RELSYSDIR)/src"
61833a
-	$(INSTALL_DATA) $(ERL_FILES) $(INTERNAL_HRL_FILES) "$(RELSYSDIR)/src"
61833a
+	$(INSTALL_DATA) $(INTERNAL_HRL_FILES) "$(RELSYSDIR)/src"
61833a
 	$(INSTALL_DIR) "$(RELSYSDIR)/ebin"
61833a
 	$(INSTALL_DATA) $(BEHAVIOUR_TARGET_FILES) $(TARGET_FILES) $(APP_TARGET) \
61833a
 	$(APPUP_TARGET) "$(RELSYSDIR)/ebin"
Peter Lemenkov 96952b
diff --git a/lib/stdlib/src/Makefile b/lib/stdlib/src/Makefile
4c0d16
index 86003c953d..69bfbefeb9 100644
Peter Lemenkov 96952b
--- a/lib/stdlib/src/Makefile
Peter Lemenkov 96952b
+++ b/lib/stdlib/src/Makefile
4c0d16
@@ -216,7 +216,6 @@ include $(ERL_TOP)/make/otp_release_targets.mk
Peter Lemenkov 96952b
 
Peter Lemenkov 96952b
 release_spec: opt
61833a
 	$(INSTALL_DIR) "$(RELSYSDIR)/src"
61833a
-	$(INSTALL_DATA) $(ERL_FILES) erl_parse.yrl "$(RELSYSDIR)/src"
61833a
 	$(INSTALL_DATA) $(INTERNAL_HRL_FILES) "$(RELSYSDIR)/src"
61833a
 	$(INSTALL_DIR) "$(RELSYSDIR)/include"
61833a
 	$(INSTALL_DATA) $(HRL_FILES) "$(RELSYSDIR)/include"
Peter Lemenkov 96952b
diff --git a/lib/syntax_tools/src/Makefile b/lib/syntax_tools/src/Makefile
0cc610
index c21d2f49c8..03dbc74ef7 100644
Peter Lemenkov 96952b
--- a/lib/syntax_tools/src/Makefile
Peter Lemenkov 96952b
+++ b/lib/syntax_tools/src/Makefile
844843
@@ -100,8 +100,6 @@ include $(ERL_TOP)/make/otp_release_targets.mk
Peter Lemenkov 96952b
 release_spec: opt
61833a
 	$(INSTALL_DIR) "$(RELSYSDIR)/ebin"
61833a
 	$(INSTALL_DATA) $(OBJECTS) "$(RELSYSDIR)/ebin"
61833a
-	$(INSTALL_DIR) "$(RELSYSDIR)/src"
61833a
-	$(INSTALL_DATA) $(SOURCES) "$(RELSYSDIR)/src"
844843
 	$(INSTALL_DIR) "$(RELSYSDIR)/include"
844843
 	$(INSTALL_DATA) $(INCLUDE_DELIVERABLES) "$(RELSYSDIR)/include"
Peter Lemenkov 96952b
 
0cc610
diff --git a/lib/tftp/src/Makefile b/lib/tftp/src/Makefile
0cc610
index 602ae845a4..a1f2f09a00 100644
0cc610
--- a/lib/tftp/src/Makefile
0cc610
+++ b/lib/tftp/src/Makefile
0cc610
@@ -98,7 +98,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk
0cc610
 
0cc610
 release_spec: opt
0cc610
 	$(INSTALL_DIR) "$(RELSYSDIR)/src"
0cc610
-	$(INSTALL_DATA) $(ERL_FILES) $(HRL_FILES) "$(RELSYSDIR)/src"
0cc610
+	$(INSTALL_DATA) $(HRL_FILES) "$(RELSYSDIR)/src"
0cc610
 	$(INSTALL_DIR) "$(RELSYSDIR)/ebin"
0cc610
 	$(INSTALL_DATA) $(BEHAVIOUR_TARGET_FILES) $(TARGET_FILES) $(APP_TARGET) \
0cc610
 	$(APPUP_TARGET) "$(RELSYSDIR)/ebin"
Peter Lemenkov 96952b
diff --git a/lib/tools/src/Makefile b/lib/tools/src/Makefile
0cc610
index cc5bee9a8f..7dfa55cb41 100644
Peter Lemenkov 96952b
--- a/lib/tools/src/Makefile
Peter Lemenkov 96952b
+++ b/lib/tools/src/Makefile
0cc610
@@ -109,7 +109,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk
Peter Lemenkov 96952b
 
Peter Lemenkov 96952b
 release_spec: opt
61833a
 	$(INSTALL_DIR) "$(RELSYSDIR)/src"
61833a
-	$(INSTALL_DATA) $(ERL_FILES) $(YRL_FILE) $(HRL_FILES) "$(RELSYSDIR)/src"
61833a
+	$(INSTALL_DATA) $(HRL_FILES) "$(RELSYSDIR)/src"
61833a
 	$(INSTALL_DIR) "$(RELSYSDIR)/ebin"
Peter Lemenkov 96952b
 	$(INSTALL_DATA) $(TARGET_FILES) $(APP_TARGET) $(APPUP_TARGET) \
61833a
 		"$(RELSYSDIR)/ebin"
Peter Lemenkov 96952b
diff --git a/lib/wx/src/Makefile b/lib/wx/src/Makefile
4c0d16
index 52f4008e0a..dc297f1d55 100644
Peter Lemenkov 96952b
--- a/lib/wx/src/Makefile
Peter Lemenkov 96952b
+++ b/lib/wx/src/Makefile
844843
@@ -122,9 +122,9 @@ $(EBIN)/%.beam: $(EGEN)/%.erl $(HEADER_FILES)
Peter Lemenkov 96952b
 include $(ERL_TOP)/make/otp_release_targets.mk
Peter Lemenkov 96952b
 release_spec: opt 
61833a
 	$(INSTALL_DIR) "$(RELSYSDIR)/src"
61833a
-	$(INSTALL_DATA) $(HRL_FILES) $(ERL_FILES) "$(RELSYSDIR)/src"
61833a
+	$(INSTALL_DATA) $(HRL_FILES) "$(RELSYSDIR)/src"
61833a
 	$(INSTALL_DIR) "$(RELSYSDIR)/src/gen"
61833a
-	$(INSTALL_DATA) $(GEN_HRL) $(GEN_FILES) "$(RELSYSDIR)/src/gen"
61833a
+	$(INSTALL_DATA) $(GEN_HRL) "$(RELSYSDIR)/src/gen"
61833a
 	$(INSTALL_DIR) "$(RELSYSDIR)/include"
61833a
 	$(INSTALL_DATA) $(EXT_HRL) "$(RELSYSDIR)/include"
61833a
 	$(INSTALL_DIR) "$(RELSYSDIR)/ebin"
Peter Lemenkov 96952b
diff --git a/lib/xmerl/src/Makefile b/lib/xmerl/src/Makefile
57b0bc
index 51d9190797..1ab65bd2ed 100644
Peter Lemenkov 96952b
--- a/lib/xmerl/src/Makefile
Peter Lemenkov 96952b
+++ b/lib/xmerl/src/Makefile
844843
@@ -218,9 +218,7 @@ release_spec: opt
61833a
 	$(INSTALL_DIR) "$(RELSYSDIR)/ebin"
61833a
 	$(INSTALL_DATA) $(TARGET_FILES) "$(RELSYSDIR)/ebin"
61833a
 	$(INSTALL_DIR) "$(RELSYSDIR)/src"
61833a
-	$(INSTALL_DATA) $(ERL_FILES) $(INTERNAL_HRL_FILES) $(APP_SRC) $(APPUP_SRC) "$(RELSYSDIR)/src"
61833a
-	$(INSTALL_DATA) xmerl_xpath_parse.yrl "$(RELSYSDIR)/src"
61833a
-	$(INSTALL_DATA) xmerl_b64Bin.yrl "$(RELSYSDIR)/src"
61833a
+	$(INSTALL_DATA) $(INTERNAL_HRL_FILES) "$(RELSYSDIR)/src"
61833a
 	$(INSTALL_DIR) "$(RELSYSDIR)/include"
61833a
 	$(INSTALL_DATA) $(HRL_FILES) "$(RELSYSDIR)/include"
Peter Lemenkov 96952b