Hans Ulrich Niedermann d00ca99
From: Hans Ulrich Niedermann <hun@n-dimensional.de>
Hans Ulrich Niedermann d00ca99
Date: Mon, 21 Mar 2011 15:41:49 +0100
Hans Ulrich Niedermann 696873c
Subject: [PATCH] Do not install erlang sources
96952bd
5203c4f
Don't install *.erl, *.xrl, *.yrl, and *.asn1 files at all.
5203c4f
96952bd
Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
Hans Ulrich Niedermann d00ca99
Signed-off-by: Hans Ulrich Niedermann <hun@n-dimensional.de>
96952bd
96952bd
diff --git a/erts/preloaded/src/Makefile b/erts/preloaded/src/Makefile
57b0bc8
index 2ab9edaf5e..9b8ed35d1a 100644
96952bd
--- a/erts/preloaded/src/Makefile
96952bd
+++ b/erts/preloaded/src/Makefile
Peter Lemenkov bf974e2
@@ -90,8 +90,6 @@ $(APP_TARGET): $(APP_SRC) $(ERL_TOP)/erts/vsn.mk
96952bd
 include $(ERL_TOP)/make/otp_release_targets.mk
96952bd
 
9a9df59
 release_spec: $(APP_TARGET)
61833ac
-	$(INSTALL_DIR) "$(RELSYSDIR)/src"
00d9d21
-	$(INSTALL_DATA) $(ERL_FILES) $(BEAM_FILES) $(STUBS_FILES) "$(RELSYSDIR)/src"
61833ac
 	$(INSTALL_DIR) "$(RELSYSDIR)/ebin"
9a9df59
 	$(INSTALL_DATA) $(STATIC_TARGET_FILES) $(APP_TARGET) "$(RELSYSDIR)/ebin"
96952bd
 
96952bd
diff --git a/lib/asn1/src/Makefile b/lib/asn1/src/Makefile
57b0bc8
index 38cf2d496a..d4bb3982d2 100644
96952bd
--- a/lib/asn1/src/Makefile
96952bd
+++ b/lib/asn1/src/Makefile
8448438
@@ -155,7 +155,7 @@ release_spec: opt
61833ac
 	$(INSTALL_DIR) "$(RELSYSDIR)/ebin"
61833ac
 	$(INSTALL_DATA) $(TARGET_FILES) $(APP_TARGET) $(APPUP_TARGET) "$(RELSYSDIR)/ebin"
61833ac
 	$(INSTALL_DIR) "$(RELSYSDIR)/src"
61833ac
-	$(INSTALL_DATA)  $(ERL_FILES) $(HRL_FILES) $(APP_SRC) $(APPUP_SRC) "$(RELSYSDIR)/src"
61833ac
+	$(INSTALL_DATA) $(HRL_FILES) "$(RELSYSDIR)/src"
61833ac
 	$(INSTALL_DIR) "$(RELSYSDIR)/examples"
61833ac
 	$(INSTALL_DATA) $(EXAMPLES) "$(RELSYSDIR)/examples"
96952bd
 
96952bd
diff --git a/lib/common_test/src/Makefile b/lib/common_test/src/Makefile
57b0bc8
index 9d751996ad..b96a11225c 100644
96952bd
--- a/lib/common_test/src/Makefile
96952bd
+++ b/lib/common_test/src/Makefile
8bed1fa
@@ -152,7 +152,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk
96952bd
 
96952bd
 release_spec: opt
61833ac
 	$(INSTALL_DIR) "$(RELSYSDIR)/src"
61833ac
-	$(INSTALL_DATA) $(ERL_FILES) $(HRL_FILES) "$(RELSYSDIR)/src"
61833ac
+	$(INSTALL_DATA) $(HRL_FILES) "$(RELSYSDIR)/src"
61833ac
 	$(INSTALL_DIR) "$(RELSYSDIR)/ebin"
61833ac
 	$(INSTALL_DATA) $(TARGET_FILES) "$(RELSYSDIR)/ebin"
61833ac
 	$(INSTALL_DIR) "$(RELSYSDIR)/include"
8a7b810
diff --git a/lib/common_test/test_server/Makefile b/lib/common_test/test_server/Makefile
57b0bc8
index f015064b39..57f96d2929 100644
8a7b810
--- a/lib/common_test/test_server/Makefile
8a7b810
+++ b/lib/common_test/test_server/Makefile
8a7b810
@@ -86,9 +86,9 @@ include $(ERL_TOP)/make/otp_release_targets.mk
8a7b810
 
8a7b810
 release_tests_spec: opt
8a7b810
 	$(INSTALL_DIR) "$(RELEASE_PATH)/test_server"
8a7b810
-	$(INSTALL_DATA) $(TS_ERL_FILES) $(TS_HRL_FILES) \
8a7b810
+	$(INSTALL_DATA) $(TS_HRL_FILES) \
8a7b810
 		$(TS_TARGET_FILES) \
8a7b810
-		$(AUTOCONF_FILES) $(CONFIG) \
8a7b810
+		$(CONFIG) \
8a7b810
 		"$(RELEASE_PATH)/test_server"
8a7b810
 	$(INSTALL_SCRIPT) $(PROGRAMS) "$(RELEASE_PATH)/test_server"
8a7b810
 
96952bd
diff --git a/lib/compiler/src/Makefile b/lib/compiler/src/Makefile
57b0bc8
index 518c89d044..1bcd19cff7 100644
96952bd
--- a/lib/compiler/src/Makefile
96952bd
+++ b/lib/compiler/src/Makefile
8a7b810
@@ -174,8 +174,8 @@ include $(ERL_TOP)/make/otp_release_targets.mk
96952bd
 
96952bd
 release_spec: opt
61833ac
 	$(INSTALL_DIR) "$(RELSYSDIR)/src"
96952bd
-	$(INSTALL_DATA) $(ERL_FILES) $(HRL_FILES) $(EXTRA_FILES) \
61833ac
-		$(YRL_FILE) "$(RELSYSDIR)/src"
96952bd
+	$(INSTALL_DATA) $(HRL_FILES) $(EXTRA_FILES) \
61833ac
+		"$(RELSYSDIR)/src"
61833ac
 	$(INSTALL_DIR) "$(RELSYSDIR)/ebin"
61833ac
 	$(INSTALL_DATA) $(INSTALL_FILES) "$(RELSYSDIR)/ebin"
96952bd
 
96952bd
diff --git a/lib/cosEvent/src/Makefile b/lib/cosEvent/src/Makefile
57b0bc8
index 29d6223005..cb433090d2 100644
96952bd
--- a/lib/cosEvent/src/Makefile
96952bd
+++ b/lib/cosEvent/src/Makefile
8448438
@@ -203,7 +203,7 @@ release_spec: opt
61833ac
 	$(INSTALL_DIR) "$(RELSYSDIR)/ebin"
61833ac
 	$(INSTALL_DATA) $(TARGET_FILES) $(APP_TARGET) $(APPUP_TARGET) "$(RELSYSDIR)/ebin"
61833ac
 	$(INSTALL_DIR) "$(RELSYSDIR)/src"
61833ac
-	$(INSTALL_DATA) $(ERL_FILES) $(HRL_FILES) $(GEN_ERL_FILES) $(IDL_FILES) "$(RELSYSDIR)/src"
61833ac
+	$(INSTALL_DATA) $(HRL_FILES) $(IDL_FILES) "$(RELSYSDIR)/src"
61833ac
 	$(INSTALL_DIR) "$(RELSYSDIR)/include"
61833ac
 	$(INSTALL_DATA) $(GEN_HRL_FILES) "$(RELSYSDIR)/include"
96952bd
 
96952bd
diff --git a/lib/cosEventDomain/src/Makefile b/lib/cosEventDomain/src/Makefile
57b0bc8
index cdaf9e5f1f..6e4e9b8c52 100644
96952bd
--- a/lib/cosEventDomain/src/Makefile
96952bd
+++ b/lib/cosEventDomain/src/Makefile
8448438
@@ -172,7 +172,7 @@ release_spec: opt
61833ac
 	$(INSTALL_DIR) "$(RELSYSDIR)/ebin"
61833ac
 	$(INSTALL_DATA) $(TARGET_FILES) $(APP_TARGET) $(APPUP_TARGET) "$(RELSYSDIR)/ebin"
61833ac
 	$(INSTALL_DIR) "$(RELSYSDIR)/src"
61833ac
-	$(INSTALL_DATA) $(ERL_FILES) $(HRL_FILES) $(GEN_ERL_FILES) $(IDL_FILES) "$(RELSYSDIR)/src"
61833ac
+	$(INSTALL_DATA) $(HRL_FILES) $(IDL_FILES) "$(RELSYSDIR)/src"
61833ac
 	$(INSTALL_DIR) "$(RELSYSDIR)/include"
61833ac
 	$(INSTALL_DATA) $(EXTERNAL_GEN_HRL_FILES) "$(RELSYSDIR)/include"
96952bd
 
96952bd
diff --git a/lib/cosFileTransfer/src/Makefile b/lib/cosFileTransfer/src/Makefile
57b0bc8
index b3967101e9..2678c2a642 100644
96952bd
--- a/lib/cosFileTransfer/src/Makefile
96952bd
+++ b/lib/cosFileTransfer/src/Makefile
8448438
@@ -180,9 +180,7 @@ release_spec: opt
61833ac
 	$(INSTALL_DIR) "$(RELSYSDIR)/ebin"
61833ac
 	$(INSTALL_DATA) $(TARGET_FILES) $(APP_TARGET) $(APPUP_TARGET) "$(RELSYSDIR)/ebin"
61833ac
 	$(INSTALL_DIR) "$(RELSYSDIR)/src"
61833ac
-	$(INSTALL_DATA) $(GEN_FILES) $(IDL_FILES) "$(RELSYSDIR)/src"
61833ac
-	$(INSTALL_DATA) $(ERL_FILES) $(HRL_FILES) $(GEN_ERL_FILES) $(IDL_FILES) "$(RELSYSDIR)/src"
61833ac
+	$(INSTALL_DATA) $(HRL_FILES) $(GEN_HRL_FILES) $(IDL_FILES) "$(RELSYSDIR)/src"
61833ac
 	$(INSTALL_DIR) "$(RELSYSDIR)/include"
61833ac
-	$(INSTALL_DATA) $(GEN_HRL_FILES) "$(RELSYSDIR)/include"
96952bd
 
61833ac
 release_docs_spec:
96952bd
diff --git a/lib/cosNotification/src/Makefile b/lib/cosNotification/src/Makefile
57b0bc8
index 009c6be4a5..83c2e26057 100644
96952bd
--- a/lib/cosNotification/src/Makefile
96952bd
+++ b/lib/cosNotification/src/Makefile
8448438
@@ -371,8 +371,7 @@ release_spec: opt
61833ac
 	$(INSTALL_DIR) "$(RELSYSDIR)/ebin"
61833ac
 	$(INSTALL_DATA) $(TARGET_FILES) $(APP_TARGET) $(APPUP_TARGET) "$(RELSYSDIR)/ebin"
61833ac
 	$(INSTALL_DIR) "$(RELSYSDIR)/src"
61833ac
-	$(INSTALL_DATA) $(GEN_FILES) $(IDL_FILES) $(YECC_FILES) "$(RELSYSDIR)/src"
61833ac
-	$(INSTALL_DATA) $(ERL_FILES) $(HRL_FILES) $(IDL_FILES) $(YECC_FILES) "$(RELSYSDIR)/src"
61833ac
+	$(INSTALL_DATA) $(GEN_HRL_FILES) $(HRL_FILES) $(IDL_FILES) "$(RELSYSDIR)/src"
61833ac
 	$(INSTALL_DIR) "$(RELSYSDIR)/include"
61833ac
 	$(INSTALL_DATA) $(GEN_HRL_FILES) "$(RELSYSDIR)/include"
96952bd
 
96952bd
diff --git a/lib/cosProperty/src/Makefile b/lib/cosProperty/src/Makefile
57b0bc8
index 1fdc258a6d..90cf7116b7 100644
96952bd
--- a/lib/cosProperty/src/Makefile
96952bd
+++ b/lib/cosProperty/src/Makefile
8448438
@@ -180,8 +180,7 @@ release_spec: opt
61833ac
 	$(INSTALL_DIR) "$(RELSYSDIR)/ebin"
61833ac
 	$(INSTALL_DATA) $(TARGET_FILES) $(APP_TARGET) $(APPUP_TARGET) "$(RELSYSDIR)/ebin"
61833ac
 	$(INSTALL_DIR) "$(RELSYSDIR)/src"
61833ac
-	$(INSTALL_DATA) $(GEN_FILES) $(IDL_FILES) "$(RELSYSDIR)/src"
61833ac
-	$(INSTALL_DATA) $(ERL_FILES) $(HRL_FILES) $(GEN_ERL_FILES) $(IDL_FILES) "$(RELSYSDIR)/src"
61833ac
+	$(INSTALL_DATA) $(GEN_HRL_FILES) $(HRL_FILES) $(IDL_FILES) "$(RELSYSDIR)/src"
61833ac
 	$(INSTALL_DIR) "$(RELSYSDIR)/include"
61833ac
 	$(INSTALL_DATA) $(GEN_HRL_FILES) "$(RELSYSDIR)/include"
96952bd
 
96952bd
diff --git a/lib/cosTime/src/Makefile b/lib/cosTime/src/Makefile
57b0bc8
index 55d59baea3..f22e2c81db 100644
96952bd
--- a/lib/cosTime/src/Makefile
96952bd
+++ b/lib/cosTime/src/Makefile
8448438
@@ -199,8 +199,7 @@ release_spec: opt
61833ac
 	$(INSTALL_DIR) "$(RELSYSDIR)/ebin"
61833ac
 	$(INSTALL_DATA) $(TARGET_FILES) $(APP_TARGET) $(APPUP_TARGET) "$(RELSYSDIR)/ebin"
61833ac
 	$(INSTALL_DIR) "$(RELSYSDIR)/src"
61833ac
-	$(INSTALL_DATA) $(GEN_FILES) $(IDL_FILES) "$(RELSYSDIR)/src"
61833ac
-	$(INSTALL_DATA) $(ERL_FILES) $(HRL_FILES) $(GEN_ERL_FILES) $(IDL_FILES) "$(RELSYSDIR)/src"
61833ac
+	$(INSTALL_DATA) $(GEN_HRL_FILES) $(HRL_FILES) $(IDL_FILES) "$(RELSYSDIR)/src"
61833ac
 	$(INSTALL_DIR) "$(RELSYSDIR)/include"
61833ac
 	$(INSTALL_DATA) $(GEN_HRL_FILES) "$(RELSYSDIR)/include"
96952bd
 
96952bd
diff --git a/lib/cosTransactions/src/Makefile b/lib/cosTransactions/src/Makefile
57b0bc8
index 4cc1e487c2..084f0a7230 100644
96952bd
--- a/lib/cosTransactions/src/Makefile
96952bd
+++ b/lib/cosTransactions/src/Makefile
8448438
@@ -174,7 +174,7 @@ release_spec: opt
61833ac
 	$(INSTALL_DIR) "$(RELSYSDIR)/ebin"
61833ac
 	$(INSTALL_DATA) $(TARGET_FILES) $(APP_TARGET) $(APPUP_TARGET) "$(RELSYSDIR)/ebin"
61833ac
 	$(INSTALL_DIR) "$(RELSYSDIR)/src"
61833ac
-	$(INSTALL_DATA) $(ERL_FILES) $(HRL_FILES) $(GEN_ERL_FILES) $(IDL_FILE) "$(RELSYSDIR)/src"
61833ac
+	$(INSTALL_DATA) $(HRL_FILES) $(IDL_FILE) "$(RELSYSDIR)/src"
61833ac
 	$(INSTALL_DIR) "$(RELSYSDIR)/include"
61833ac
 	$(INSTALL_DATA) $(EXTERNAL_GEN_HRL_FILES) "$(RELSYSDIR)/include"
96952bd
 
96952bd
diff --git a/lib/crypto/src/Makefile b/lib/crypto/src/Makefile
57b0bc8
index 456b8be64d..fcfa8def89 100644
96952bd
--- a/lib/crypto/src/Makefile
96952bd
+++ b/lib/crypto/src/Makefile
8448438
@@ -82,8 +82,6 @@ docs:
96952bd
 include $(ERL_TOP)/make/otp_release_targets.mk
96952bd
 
96952bd
 release_spec: opt
61833ac
-	$(INSTALL_DIR) "$(RELSYSDIR)/src"
61833ac
-	$(INSTALL_DATA) $(ERL_FILES) "$(RELSYSDIR)/src"
61833ac
 	$(INSTALL_DIR) "$(RELSYSDIR)/ebin"
96952bd
 	$(INSTALL_DATA) $(TARGET_FILES) $(APP_TARGET) \
61833ac
 		$(APPUP_TARGET) "$(RELSYSDIR)/ebin"
96952bd
diff --git a/lib/debugger/src/Makefile b/lib/debugger/src/Makefile
57b0bc8
index 9594a0bfe3..bc33e67e88 100644
96952bd
--- a/lib/debugger/src/Makefile
96952bd
+++ b/lib/debugger/src/Makefile
8448438
@@ -117,7 +117,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk
96952bd
 
96952bd
 release_spec: opt
61833ac
 	$(INSTALL_DIR) "$(RELSYSDIR)/src"
61833ac
-	$(INSTALL_DATA) $(ERL_FILES) $(INTERNAL_HRL_FILES) $(TOOLBOX_FILES) "$(RELSYSDIR)/src"
61833ac
+	$(INSTALL_DATA) $(INTERNAL_HRL_FILES) $(TOOLBOX_FILES) "$(RELSYSDIR)/src"
61833ac
 	$(INSTALL_DIR) "$(RELSYSDIR)/ebin"
61833ac
 	$(INSTALL_DATA) $(TARGET_FILES) $(TARGET_TOOLBOX_FILES) "$(RELSYSDIR)/ebin"
96952bd
 
96952bd
diff --git a/lib/dialyzer/src/Makefile b/lib/dialyzer/src/Makefile
57b0bc8
index 256f20f549..2920c0f198 100644
96952bd
--- a/lib/dialyzer/src/Makefile
96952bd
+++ b/lib/dialyzer/src/Makefile
8a7b810
@@ -154,7 +154,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk
96952bd
 
96952bd
 release_spec: opt
61833ac
 	$(INSTALL_DIR) "$(RELSYSDIR)/src"
96952bd
-	$(INSTALL_DATA) $(ERL_FILES) $(HRL_FILES) $(EXTRA_FILES) \
96952bd
+	$(INSTALL_DATA) $(HRL_FILES) $(EXTRA_FILES) \
61833ac
 		"$(RELSYSDIR)/src"
61833ac
 	$(INSTALL_DIR) "$(RELSYSDIR)/ebin"
61833ac
 	$(INSTALL_DATA) $(INSTALL_FILES) "$(RELSYSDIR)/ebin"
5d2c883
diff --git a/lib/diameter/src/Makefile b/lib/diameter/src/Makefile
57b0bc8
index 6bf748a727..962d7b75d6 100644
5d2c883
--- a/lib/diameter/src/Makefile
5d2c883
+++ b/lib/diameter/src/Makefile
8448438
@@ -251,11 +251,8 @@ release_spec: opt
5203c4f
 	$(MAKE) $(EXAMPLE_DIRS:%/=release_examples_%)
5d2c883
 
5d2c883
 $(TARGET_DIRS:%/=release_src_%): release_src_%:
61833ac
-	$(INSTALL_DIR) "$(RELSYSDIR)/src/$*"
5d2c883
-	$(INSTALL_DATA) $(filter $*/%, $(TARGET_MODULES:%=%.erl) \
5d2c883
-	                               $(INTERNAL_HRLS)) \
5d2c883
-	                $(filter $*/%, compiler/$(DICT_YRL).yrl) \
61833ac
-	                "$(RELSYSDIR)/src/$*"
5d2c883
+	$(INSTALL_DATA) $(filter $*/%, $(INTERNAL_HRLS)) \
61833ac
+	                "$(RELSYSDIR)/src/$*" || true
ebf67f0
 
5203c4f
 $(EXAMPLE_DIRS:%/=release_examples_%): release_examples_%:
61833ac
 	$(INSTALL_DIR) "$(RELSYSDIR)/examples/$*"
96952bd
diff --git a/lib/edoc/src/Makefile b/lib/edoc/src/Makefile
57b0bc8
index 4e5a4182da..c0bb0c32ec 100644
96952bd
--- a/lib/edoc/src/Makefile
96952bd
+++ b/lib/edoc/src/Makefile
Hans Ulrich Niedermann d00ca99
@@ -88,7 +88,7 @@ release_spec: opt
61833ac
 	$(INSTALL_DIR) "$(RELSYSDIR)/ebin"
61833ac
 	$(INSTALL_DATA) $(OBJECTS) "$(RELSYSDIR)/ebin"
61833ac
 	$(INSTALL_DIR) "$(RELSYSDIR)/src"
61833ac
-	$(INSTALL_DATA) $(SOURCES) $(HRL_FILES) $(YRL_FILE) "$(RELSYSDIR)/src"
61833ac
+	$(INSTALL_DATA) $(HRL_FILES) "$(RELSYSDIR)/src"
96952bd
 
96952bd
 release_docs_spec:
96952bd
 
5203c4f
diff --git a/lib/eldap/src/Makefile b/lib/eldap/src/Makefile
57b0bc8
index b79a537424..d0b231e5fc 100644
5203c4f
--- a/lib/eldap/src/Makefile
5203c4f
+++ b/lib/eldap/src/Makefile
8a7b810
@@ -98,13 +98,9 @@ include $(ERL_TOP)/make/otp_release_targets.mk
8a7b810
 
5203c4f
 release_spec: opt
61833ac
 	$(INSTALL_DIR) "$(RELSYSDIR)/ebin"
8a7b810
-	$(INSTALL_DATA) $(ASN1_HRL) $(TARGET_FILES) $(APP_TARGET) $(APPUP_TARGET) "$(RELSYSDIR)/ebin"
61833ac
-	$(INSTALL_DIR) "$(RELSYSDIR)/src"
61833ac
-	$(INSTALL_DATA) $(ERL_FILES) "$(RELSYSDIR)/src"
61833ac
-	$(INSTALL_DIR) "$(RELSYSDIR)/asn1"
61833ac
-	$(INSTALL_DATA) ../asn1/$(ASN1_FILES) "$(RELSYSDIR)/asn1"
8a7b810
+	$(INSTALL_DATA) $(TARGET_FILES) $(APP_TARGET) $(APPUP_TARGET) "$(RELSYSDIR)/ebin"
61833ac
 	$(INSTALL_DIR) "$(RELSYSDIR)/include"
8a7b810
-	$(INSTALL_DATA) $(EXTERNAL_HRL_FILES) "$(RELSYSDIR)/include"
8a7b810
+	$(INSTALL_DATA) $(HRL_FILES) "$(RELSYSDIR)/include"
8a7b810
 
8a7b810
 release_docs_spec:
5203c4f
 
ebf67f0
diff --git a/lib/erl_docgen/src/Makefile b/lib/erl_docgen/src/Makefile
57b0bc8
index 82d051e9bb..950fdbe177 100644
ebf67f0
--- a/lib/erl_docgen/src/Makefile
ebf67f0
+++ b/lib/erl_docgen/src/Makefile
8448438
@@ -90,8 +90,6 @@ $(APPUP_TARGET): $(APPUP_SRC) ../vsn.mk
ebf67f0
 include $(ERL_TOP)/make/otp_release_targets.mk
ebf67f0
 
ebf67f0
 release_spec: opt
61833ac
-	$(INSTALL_DIR) "$(RELSYSDIR)/src"
61833ac
-	$(INSTALL_DATA) $(ERL_FILES) "$(RELSYSDIR)/src"
61833ac
 	$(INSTALL_DIR) "$(RELSYSDIR)/ebin"
61833ac
 	$(INSTALL_DATA) $(TARGET_FILES) "$(RELSYSDIR)/ebin"
ebf67f0
 
96952bd
diff --git a/lib/et/src/Makefile b/lib/et/src/Makefile
57b0bc8
index b6347d8b6d..a695d2cc2d 100644
96952bd
--- a/lib/et/src/Makefile
96952bd
+++ b/lib/et/src/Makefile
8448438
@@ -109,7 +109,6 @@ release_spec: opt
61833ac
 	$(INSTALL_DATA) $(TARGET_FILES) "$(RELSYSDIR)/ebin"
61833ac
 	$(INSTALL_DATA) $(APP_TARGET) $(APPUP_TARGET) "$(RELSYSDIR)/ebin"
61833ac
 	$(INSTALL_DIR)  "$(RELSYSDIR)/src"
61833ac
-	$(INSTALL_DATA) $(ERL_FILES) "$(RELSYSDIR)/src"
61833ac
 	$(INSTALL_DATA) $(INTERNAL_HRL_FILES) "$(RELSYSDIR)/src"
61833ac
 	$(INSTALL_DIR)  "$(RELSYSDIR)/include"
61833ac
 	$(INSTALL_DATA) $(HRL_FILES) "$(RELSYSDIR)/include"
96952bd
diff --git a/lib/eunit/src/Makefile b/lib/eunit/src/Makefile
57b0bc8
index 86a6d8831e..5732fd85f3 100644
96952bd
--- a/lib/eunit/src/Makefile
96952bd
+++ b/lib/eunit/src/Makefile
2893cc5
@@ -120,7 +120,6 @@ release_spec: opt
61833ac
 	$(INSTALL_DIR) "$(RELSYSDIR)/ebin"
61833ac
 	$(INSTALL_DATA) $(PARSE_TRANSFORM_BIN) $(OBJECTS) "$(RELSYSDIR)/ebin"
2893cc5
 	$(INSTALL_DIR) "$(RELSYSDIR)/src"
61833ac
-	$(INSTALL_DATA) $(PARSE_TRANSFORM) $(SOURCES) "$(RELSYSDIR)/src"
2893cc5
 	$(INSTALL_DATA) $(INTERNAL_HRL_FILES) "$(RELSYSDIR)/src"
61833ac
 	$(INSTALL_DIR) "$(RELSYSDIR)/include"
61833ac
 	$(INSTALL_DATA) $(INCLUDE_DELIVERABLES) "$(RELSYSDIR)/include"
96952bd
diff --git a/lib/gs/src/Makefile b/lib/gs/src/Makefile
57b0bc8
index e19ce822b9..6b7c96ea68 100644
96952bd
--- a/lib/gs/src/Makefile
96952bd
+++ b/lib/gs/src/Makefile
8448438
@@ -109,8 +109,8 @@ include $(ERL_TOP)/make/otp_release_targets.mk
96952bd
 
96952bd
 release_spec: opt
61833ac
 	$(INSTALL_DIR) "$(RELSYSDIR)/src"
96952bd
-	$(INSTALL_DATA) $(APP_SRC) $(ERL_FILES) $(HRL_FILES) $(GEN_HRL_FILES) \
61833ac
-		$(GSTK_GENERIC) "$(RELSYSDIR)/src"
96952bd
+	$(INSTALL_DATA) $(HRL_FILES) $(GEN_HRL_FILES) \
61833ac
+		"$(RELSYSDIR)/src"
61833ac
 	$(INSTALL_DIR) "$(RELSYSDIR)/ebin"
61833ac
 	$(INSTALL_DATA) $(TARGET_FILES) "$(RELSYSDIR)/ebin"
61833ac
 	$(INSTALL_DIR) "$(RELSYSDIR)/priv/bitmap"
96952bd
diff --git a/lib/hipe/cerl/Makefile b/lib/hipe/cerl/Makefile
57b0bc8
index 9f50d6bf91..df92b84c0d 100644
96952bd
--- a/lib/hipe/cerl/Makefile
96952bd
+++ b/lib/hipe/cerl/Makefile
8448438
@@ -102,7 +102,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk
96952bd
 
96952bd
 release_spec: opt
61833ac
 	$(INSTALL_DIR) "$(RELSYSDIR)/cerl"
61833ac
-	$(INSTALL_DATA) $(ERL_FILES) $(HRL_FILES) "$(RELSYSDIR)/cerl"
61833ac
+	$(INSTALL_DATA) $(HRL_FILES) "$(RELSYSDIR)/cerl"
61833ac
 	$(INSTALL_DIR) "$(RELSYSDIR)/ebin"
61833ac
 	$(INSTALL_DATA) $(TARGET_FILES) "$(RELSYSDIR)/ebin"
96952bd
 
96952bd
diff --git a/lib/hipe/flow/Makefile b/lib/hipe/flow/Makefile
57b0bc8
index d883eecf36..3119bc4638 100644
96952bd
--- a/lib/hipe/flow/Makefile
96952bd
+++ b/lib/hipe/flow/Makefile
8448438
@@ -102,7 +102,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk
96952bd
 
96952bd
 release_spec: opt
61833ac
 	$(INSTALL_DIR) "$(RELSYSDIR)/flow"
61833ac
-	$(INSTALL_DATA) $(ERL_FILES) $(HRL_FILES) $(INC_FILES) "$(RELSYSDIR)/flow"
61833ac
+	$(INSTALL_DATA) $(HRL_FILES) $(INC_FILES) "$(RELSYSDIR)/flow"
61833ac
 	$(INSTALL_DIR) "$(RELSYSDIR)/ebin"
61833ac
 	$(INSTALL_DATA) $(TARGET_FILES) "$(RELSYSDIR)/ebin"
96952bd
 
96952bd
diff --git a/lib/hipe/icode/Makefile b/lib/hipe/icode/Makefile
57b0bc8
index b220bc16a0..d4073277be 100644
96952bd
--- a/lib/hipe/icode/Makefile
96952bd
+++ b/lib/hipe/icode/Makefile
8448438
@@ -120,7 +120,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk
96952bd
 
96952bd
 release_spec: opt
61833ac
 	$(INSTALL_DIR) "$(RELSYSDIR)/icode"
61833ac
-	$(INSTALL_DATA) $(ERL_FILES) $(HRL_FILES) "$(RELSYSDIR)/icode"
61833ac
+	$(INSTALL_DATA) $(HRL_FILES) "$(RELSYSDIR)/icode"
61833ac
 	$(INSTALL_DIR) "$(RELSYSDIR)/ebin"
61833ac
 	$(INSTALL_DATA) $(TARGET_FILES) "$(RELSYSDIR)/ebin"
96952bd
 
eeecf73
diff --git a/lib/hipe/llvm/Makefile b/lib/hipe/llvm/Makefile
57b0bc8
index 88016a7d8b..d8e8fa0546 100644
eeecf73
--- a/lib/hipe/llvm/Makefile
eeecf73
+++ b/lib/hipe/llvm/Makefile
8a7b810
@@ -102,7 +102,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk
eeecf73
 
eeecf73
 release_spec: opt
eeecf73
 	$(INSTALL_DIR) $(RELSYSDIR)/llvm
eeecf73
-	$(INSTALL_DATA) $(ERL_FILES) $(HRL_FILES) $(RELSYSDIR)/llvm
eeecf73
+	$(INSTALL_DATA) $(HRL_FILES) $(RELSYSDIR)/llvm
eeecf73
 	$(INSTALL_DIR) $(RELSYSDIR)/ebin
eeecf73
 	$(INSTALL_DATA) $(TARGET_FILES) $(RELSYSDIR)/ebin
eeecf73
 
96952bd
diff --git a/lib/hipe/main/Makefile b/lib/hipe/main/Makefile
57b0bc8
index 8ef31dbb46..80d28819f2 100644
96952bd
--- a/lib/hipe/main/Makefile
96952bd
+++ b/lib/hipe/main/Makefile
8448438
@@ -118,7 +118,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk
96952bd
 release_spec: opt
61833ac
 	$(INSTALL_DATA) ../vsn.mk "$(RELSYSDIR)"
61833ac
 	$(INSTALL_DIR) "$(RELSYSDIR)/main"
61833ac
-	$(INSTALL_DATA) $(ERL_FILES) $(HRL_FILES) "$(RELSYSDIR)/main"
61833ac
+	$(INSTALL_DATA) $(HRL_FILES) "$(RELSYSDIR)/main"
61833ac
 	$(INSTALL_DIR) "$(RELSYSDIR)/ebin"
61833ac
 	$(INSTALL_DATA) $(TARGET_FILES) "$(RELSYSDIR)/ebin"
96952bd
 
96952bd
diff --git a/lib/hipe/misc/Makefile b/lib/hipe/misc/Makefile
57b0bc8
index 72cfff21a8..e55223a57d 100644
96952bd
--- a/lib/hipe/misc/Makefile
96952bd
+++ b/lib/hipe/misc/Makefile
8448438
@@ -102,7 +102,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk
96952bd
 
96952bd
 release_spec: opt
61833ac
 	$(INSTALL_DIR) "$(RELSYSDIR)/misc"
61833ac
-	$(INSTALL_DATA) $(ERL_FILES) $(HRL_FILES) "$(RELSYSDIR)/misc"
61833ac
+	$(INSTALL_DATA) $(HRL_FILES) "$(RELSYSDIR)/misc"
61833ac
 	$(INSTALL_DIR) "$(RELSYSDIR)/ebin"
61833ac
 	$(INSTALL_DATA) $(TARGET_FILES) "$(RELSYSDIR)/ebin"
96952bd
 
96952bd
diff --git a/lib/hipe/rtl/Makefile b/lib/hipe/rtl/Makefile
57b0bc8
index b4cdf8b1f2..f9ebcaec30 100644
96952bd
--- a/lib/hipe/rtl/Makefile
96952bd
+++ b/lib/hipe/rtl/Makefile
8448438
@@ -105,7 +105,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk
96952bd
 
96952bd
 release_spec: opt
61833ac
 	$(INSTALL_DIR) "$(RELSYSDIR)/rtl"
61833ac
-	$(INSTALL_DATA) $(ERL_FILES) $(HRL_FILES) "$(RELSYSDIR)/rtl"
61833ac
+	$(INSTALL_DATA) $(HRL_FILES) "$(RELSYSDIR)/rtl"
61833ac
 	$(INSTALL_DIR) "$(RELSYSDIR)/ebin"
61833ac
 	$(INSTALL_DATA) $(TARGET_FILES) "$(RELSYSDIR)/ebin"
96952bd
 
96952bd
diff --git a/lib/hipe/util/Makefile b/lib/hipe/util/Makefile
57b0bc8
index 66e9421c25..19517427e6 100644
96952bd
--- a/lib/hipe/util/Makefile
96952bd
+++ b/lib/hipe/util/Makefile
8448438
@@ -50,7 +50,6 @@ HIPE_MODULES =
96952bd
 endif
96952bd
 MODULES = hipe_timing hipe_dot hipe_digraph $(HIPE_MODULES)
96952bd
 
96952bd
-HRL_FILES=
96952bd
 ERL_FILES= $(MODULES:%=%.erl)
96952bd
 TARGET_FILES= $(MODULES:%=$(EBIN)/%.$(EMULATOR))
96952bd
 DOC_FILES= $(MODULES:%=$(DOCS)/%.html)
8448438
@@ -104,8 +103,6 @@ $(DOCS)/%.html:%.erl
70bf321
 include $(ERL_TOP)/make/otp_release_targets.mk
96952bd
 
96952bd
 release_spec: opt
70bf321
-	$(INSTALL_DIR) "$(RELSYSDIR)/util"
61833ac
-	$(INSTALL_DATA) $(ERL_FILES) $(HRL_FILES) "$(RELSYSDIR)/util"
61833ac
 	$(INSTALL_DIR) "$(RELSYSDIR)/ebin"
61833ac
 	$(INSTALL_DATA) $(TARGET_FILES) "$(RELSYSDIR)/ebin"
96952bd
 
96952bd
diff --git a/lib/ic/src/Makefile b/lib/ic/src/Makefile
57b0bc8
index 6ad2fbeeb7..258517da6f 100644
96952bd
--- a/lib/ic/src/Makefile
96952bd
+++ b/lib/ic/src/Makefile
8448438
@@ -200,7 +200,7 @@ release_spec: opt
61833ac
 	$(INSTALL_DIR) "$(RELSYSDIR)/ebin"
61833ac
 	$(INSTALL_DATA) $(TARGET_FILES) $(APP_TARGET) "$(RELSYSDIR)/ebin"
61833ac
 	$(INSTALL_DIR) "$(RELSYSDIR)/src"
61833ac
-	$(INSTALL_DATA) $(ERL_FILES) $(YRL_FILE) $(INTERNAL_HRL_FILES) "$(RELSYSDIR)/src"
61833ac
+	$(INSTALL_DATA) $(INTERNAL_HRL_FILES) "$(RELSYSDIR)/src"
61833ac
 	$(INSTALL_DIR) "$(RELSYSDIR)/examples"
61833ac
 	$(INSTALL_DIR) "$(RELSYSDIR)/examples/c-client"
61833ac
 	$(INSTALL_DATA) $(CCL_EX_FILES) "$(RELSYSDIR)/examples/c-client"
96952bd
diff --git a/lib/inets/src/ftp/Makefile b/lib/inets/src/ftp/Makefile
57b0bc8
index 6b99694ea7..530a19ecea 100644
96952bd
--- a/lib/inets/src/ftp/Makefile
96952bd
+++ b/lib/inets/src/ftp/Makefile
8448438
@@ -91,7 +91,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk
96952bd
 release_spec: opt
61833ac
 	$(INSTALL_DIR)  "$(RELSYSDIR)/src"
61833ac
 	$(INSTALL_DIR)  "$(RELSYSDIR)/src/ftp"
61833ac
-	$(INSTALL_DATA) $(HRL_FILES) $(ERL_FILES) "$(RELSYSDIR)/src/ftp"
61833ac
+	$(INSTALL_DATA) $(HRL_FILES) "$(RELSYSDIR)/src/ftp"
61833ac
 	$(INSTALL_DIR)  "$(RELSYSDIR)/ebin"
61833ac
 	$(INSTALL_DATA) $(TARGET_FILES) "$(RELSYSDIR)/ebin"
96952bd
 
96952bd
diff --git a/lib/inets/src/http_client/Makefile b/lib/inets/src/http_client/Makefile
57b0bc8
index a1c1f36b70..f2eb86f7ac 100644
96952bd
--- a/lib/inets/src/http_client/Makefile
96952bd
+++ b/lib/inets/src/http_client/Makefile
8448438
@@ -92,7 +92,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk
96952bd
 release_spec: opt
61833ac
 	$(INSTALL_DIR)  "$(RELSYSDIR)/src"
61833ac
 	$(INSTALL_DIR)  "$(RELSYSDIR)/src/http_client"
61833ac
-	$(INSTALL_DATA) $(HRL_FILES) $(ERL_FILES) "$(RELSYSDIR)/src/http_client"
61833ac
+	$(INSTALL_DATA) $(HRL_FILES) "$(RELSYSDIR)/src/http_client"
61833ac
 	$(INSTALL_DIR)  "$(RELSYSDIR)/ebin"
61833ac
 	$(INSTALL_DATA) $(TARGET_FILES) "$(RELSYSDIR)/ebin"
96952bd
 
96952bd
diff --git a/lib/inets/src/http_lib/Makefile b/lib/inets/src/http_lib/Makefile
57b0bc8
index 8248e37c44..1f1b23184b 100644
96952bd
--- a/lib/inets/src/http_lib/Makefile
96952bd
+++ b/lib/inets/src/http_lib/Makefile
8448438
@@ -90,7 +90,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk
96952bd
 release_spec: opt
61833ac
 	$(INSTALL_DIR)  "$(RELSYSDIR)/src"
61833ac
 	$(INSTALL_DIR)  "$(RELSYSDIR)/src/http_lib"
61833ac
-	$(INSTALL_DATA) $(HRL_FILES) $(ERL_FILES) "$(RELSYSDIR)/src/http_lib"
61833ac
+	$(INSTALL_DATA) $(HRL_FILES) "$(RELSYSDIR)/src/http_lib"
61833ac
 	$(INSTALL_DIR)  "$(RELSYSDIR)/ebin"
61833ac
 	$(INSTALL_DATA) $(TARGET_FILES) "$(RELSYSDIR)/ebin"
96952bd
 
96952bd
diff --git a/lib/inets/src/http_server/Makefile b/lib/inets/src/http_server/Makefile
57b0bc8
index 1c05d454a5..88f9f62d3b 100644
96952bd
--- a/lib/inets/src/http_server/Makefile
96952bd
+++ b/lib/inets/src/http_server/Makefile
8448438
@@ -135,7 +135,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk
96952bd
 release_spec: opt
61833ac
 	$(INSTALL_DIR)  "$(RELSYSDIR)/src"
61833ac
 	$(INSTALL_DIR)  "$(RELSYSDIR)/src/http_server"
61833ac
-	$(INSTALL_DATA) $(HRL_FILES) $(ERL_FILES) "$(RELSYSDIR)/src/http_server"
61833ac
+	$(INSTALL_DATA) $(HRL_FILES) "$(RELSYSDIR)/src/http_server"
61833ac
 	$(INSTALL_DIR)  "$(RELSYSDIR)/ebin"
8448438
 	$(INSTALL_DATA) $(TARGET_FILES) $(BEHAVIOUR_TARGET_FILES) "$(RELSYSDIR)/ebin"
96952bd
 
96952bd
diff --git a/lib/inets/src/inets_app/Makefile b/lib/inets/src/inets_app/Makefile
57b0bc8
index eb0098dbee..fff21ff740 100644
96952bd
--- a/lib/inets/src/inets_app/Makefile
96952bd
+++ b/lib/inets/src/inets_app/Makefile
8a7b810
@@ -114,7 +114,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk
96952bd
 release_spec: opt
61833ac
 	$(INSTALL_DIR)  "$(RELSYSDIR)/src"
61833ac
 	$(INSTALL_DIR)  "$(RELSYSDIR)/src/inets_app"
61833ac
-	$(INSTALL_DATA) $(INTERNAL_HRL_FILES) $(ERL_FILES) "$(RELSYSDIR)/src/inets_app"
61833ac
+	$(INSTALL_DATA) $(INTERNAL_HRL_FILES) "$(RELSYSDIR)/src/inets_app"
61833ac
 	$(INSTALL_DIR)  "$(RELSYSDIR)/include"
61833ac
 	$(INSTALL_DATA) $(EXTERNAL_HRL_FILES) "$(RELSYSDIR)/include"
61833ac
 	$(INSTALL_DIR)  "$(RELSYSDIR)/ebin"
96952bd
diff --git a/lib/inets/src/tftp/Makefile b/lib/inets/src/tftp/Makefile
57b0bc8
index 4eaa959cce..198fbf3106 100644
96952bd
--- a/lib/inets/src/tftp/Makefile
96952bd
+++ b/lib/inets/src/tftp/Makefile
8448438
@@ -96,7 +96,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk
96952bd
 release_spec: opt
61833ac
 	$(INSTALL_DIR)  "$(RELSYSDIR)/src"
61833ac
 	$(INSTALL_DIR)  "$(RELSYSDIR)/src/tftp"
61833ac
-	$(INSTALL_DATA) $(HRL_FILES) $(ERL_FILES) "$(RELSYSDIR)/src/tftp"
61833ac
+	$(INSTALL_DATA) $(HRL_FILES) "$(RELSYSDIR)/src/tftp"
61833ac
 	$(INSTALL_DIR)  "$(RELSYSDIR)/ebin"
61833ac
 	$(INSTALL_DATA) $(TARGET_FILES) $(BEHAVIOUR_TARGET_FILES) "$(RELSYSDIR)/ebin"
96952bd
 
96952bd
diff --git a/lib/kernel/src/Makefile b/lib/kernel/src/Makefile
57b0bc8
index 2b72f78dcf..31eed456ff 100644
96952bd
--- a/lib/kernel/src/Makefile
96952bd
+++ b/lib/kernel/src/Makefile
8a7b810
@@ -202,7 +202,6 @@ include $(ERL_TOP)/make/otp_release_targets.mk
96952bd
 
96952bd
 release_spec: opt
61833ac
 	$(INSTALL_DIR) "$(RELSYSDIR)/src"
61833ac
-	$(INSTALL_DATA) $(ERL_FILES) "$(RELSYSDIR)/src"
61833ac
 	$(INSTALL_DATA) $(INTERNAL_HRL_FILES) "$(RELSYSDIR)/src"
61833ac
 	$(INSTALL_DIR) "$(RELSYSDIR)/include"
61833ac
 	$(INSTALL_DATA) $(HRL_FILES) "$(RELSYSDIR)/include"
96952bd
diff --git a/lib/megaco/src/app/Makefile b/lib/megaco/src/app/Makefile
57b0bc8
index ab45548099..5c7a7f0be9 100644
96952bd
--- a/lib/megaco/src/app/Makefile
96952bd
+++ b/lib/megaco/src/app/Makefile
8448438
@@ -114,7 +114,7 @@ release_spec: opt
61833ac
 	$(INSTALL_DATA) $(APP_TARGET) $(APPUP_TARGET) "$(RELSYSDIR)/ebin"
61833ac
 	$(INSTALL_DIR)  "$(RELSYSDIR)/src"
61833ac
 	$(INSTALL_DIR)  "$(RELSYSDIR)/src/app"
61833ac
-	$(INSTALL_DATA) $(ERL_FILES) $(INTERNAL_HRL_FILES) "$(RELSYSDIR)/src/app"
61833ac
+	$(INSTALL_DATA) $(INTERNAL_HRL_FILES) "$(RELSYSDIR)/src/app"
61833ac
 	$(INSTALL_DIR)  "$(RELSYSDIR)/include"
61833ac
 	$(INSTALL_DATA) $(EXTERNAL_HRL_FILES) "$(RELSYSDIR)/include"
96952bd
 
96952bd
diff --git a/lib/megaco/src/binary/Makefile b/lib/megaco/src/binary/Makefile
57b0bc8
index b9643669f6..5b5a4cf482 100644
96952bd
--- a/lib/megaco/src/binary/Makefile
96952bd
+++ b/lib/megaco/src/binary/Makefile
8448438
@@ -176,7 +176,7 @@ release_spec: opt
61833ac
 	$(INSTALL_DATA) $(TARGET_FILES) "$(RELSYSDIR)/ebin"
61833ac
 	$(INSTALL_DIR)  "$(RELSYSDIR)/src"
61833ac
 	$(INSTALL_DIR)  "$(RELSYSDIR)/src/binary"
61833ac
-	$(INSTALL_DATA) $(ERL_FILES) $(HRL_FILES) $(ASN1_FILES) "$(RELSYSDIR)/src/binary"
61833ac
+	$(INSTALL_DATA) $(HRL_FILES) "$(RELSYSDIR)/src/binary"
96952bd
 
96952bd
 
96952bd
 release_docs_spec:
96952bd
diff --git a/lib/megaco/src/engine/Makefile b/lib/megaco/src/engine/Makefile
57b0bc8
index 869b516b05..fa7d774d84 100644
96952bd
--- a/lib/megaco/src/engine/Makefile
96952bd
+++ b/lib/megaco/src/engine/Makefile
8448438
@@ -102,7 +102,7 @@ release_spec: opt
61833ac
 	$(INSTALL_DATA) $(BEHAVIOUR_TARGET_FILES) $(TARGET_FILES) "$(RELSYSDIR)/ebin"
61833ac
 	$(INSTALL_DIR)  "$(RELSYSDIR)/src"
61833ac
 	$(INSTALL_DIR)  "$(RELSYSDIR)/src/engine"
61833ac
-	$(INSTALL_DATA) $(ERL_FILES) $(INTERNAL_HRL_FILES) "$(RELSYSDIR)/src/engine"
61833ac
+	$(INSTALL_DATA) $(INTERNAL_HRL_FILES) "$(RELSYSDIR)/src/engine"
61833ac
 	$(INSTALL_DIR)  "$(RELSYSDIR)/include"
96952bd
 
96952bd
 
96952bd
diff --git a/lib/megaco/src/flex/Makefile.in b/lib/megaco/src/flex/Makefile.in
57b0bc8
index 09bf1efe95..b320b2e96f 100644
96952bd
--- a/lib/megaco/src/flex/Makefile.in
96952bd
+++ b/lib/megaco/src/flex/Makefile.in
8448438
@@ -268,7 +268,6 @@ release_spec: opt
61833ac
 	$(INSTALL_DIR)  "$(RELSYSDIR)/src/flex"
61833ac
 	$(INSTALL_DIR)  "$(RELSYSDIR)/priv/lib"
61833ac
 	$(INSTALL_DIR)  "$(RELSYSDIR)/include"
61833ac
-	$(INSTALL_DATA) $(ERL_FILES) $(INTERNAL_HRL_FILES) "$(RELSYSDIR)/src/flex"
8448438
 	$(INSTALL_DATA) $(TARGET_FILES) "$(RELSYSDIR)/ebin"
96952bd
 ifeq ($(ENABLE_MEGACO_FLEX_SCANNER),true)
61833ac
 	$(INSTALL_DATA) $(FLEX_FILES) "$(RELSYSDIR)/src/flex"
96952bd
diff --git a/lib/megaco/src/tcp/Makefile b/lib/megaco/src/tcp/Makefile
57b0bc8
index d07db3fa4b..7f421d24cc 100644
96952bd
--- a/lib/megaco/src/tcp/Makefile
96952bd
+++ b/lib/megaco/src/tcp/Makefile
8448438
@@ -94,7 +94,7 @@ release_spec: opt
61833ac
 	$(INSTALL_DATA) $(TARGET_FILES) "$(RELSYSDIR)/ebin"
61833ac
 	$(INSTALL_DIR)  "$(RELSYSDIR)/src"
61833ac
 	$(INSTALL_DIR)  "$(RELSYSDIR)/src/tcp"
61833ac
-	$(INSTALL_DATA) $(ERL_FILES) $(INTERNAL_HRL_FILES) "$(RELSYSDIR)/src/tcp"
61833ac
+	$(INSTALL_DATA) $(INTERNAL_HRL_FILES) "$(RELSYSDIR)/src/tcp"
96952bd
 
96952bd
 
96952bd
 release_docs_spec:
96952bd
diff --git a/lib/megaco/src/text/Makefile b/lib/megaco/src/text/Makefile
57b0bc8
index 8e7e82b276..2a118d24e3 100644
96952bd
--- a/lib/megaco/src/text/Makefile
96952bd
+++ b/lib/megaco/src/text/Makefile
8448438
@@ -135,7 +135,7 @@ release_spec: opt
61833ac
 	$(INSTALL_DATA) $(BEAM_TARGET_FILES) "$(RELSYSDIR)/ebin"
61833ac
 	$(INSTALL_DIR)  "$(RELSYSDIR)/src"
61833ac
 	$(INSTALL_DIR)  "$(RELSYSDIR)/src/text"
61833ac
-	$(INSTALL_DATA) $(ERL_FILES) $(INTERNAL_YRL_FILES) $(INTERNAL_HRL_FILES) "$(RELSYSDIR)/src/text"
61833ac
+	$(INSTALL_DATA) $(INTERNAL_HRL_FILES) "$(RELSYSDIR)/src/text"
96952bd
 
96952bd
 
96952bd
 release_docs_spec:
96952bd
diff --git a/lib/megaco/src/udp/Makefile b/lib/megaco/src/udp/Makefile
57b0bc8
index 028a63e98e..9e11e9bfb2 100644
96952bd
--- a/lib/megaco/src/udp/Makefile
96952bd
+++ b/lib/megaco/src/udp/Makefile
8448438
@@ -94,7 +94,7 @@ release_spec: opt
61833ac
 	$(INSTALL_DATA) $(TARGET_FILES) "$(RELSYSDIR)/ebin"
61833ac
 	$(INSTALL_DIR)  "$(RELSYSDIR)/src"
61833ac
 	$(INSTALL_DIR)  "$(RELSYSDIR)/src/udp"
61833ac
-	$(INSTALL_DATA) $(ERL_FILES) $(INTERNAL_HRL_FILES) "$(RELSYSDIR)/src/udp"
61833ac
+	$(INSTALL_DATA) $(INTERNAL_HRL_FILES) "$(RELSYSDIR)/src/udp"
96952bd
 
96952bd
 
96952bd
 release_docs_spec:
96952bd
diff --git a/lib/mnesia/src/Makefile b/lib/mnesia/src/Makefile
57b0bc8
index 08a00e6aba..a21ffb3801 100644
96952bd
--- a/lib/mnesia/src/Makefile
96952bd
+++ b/lib/mnesia/src/Makefile
8a7b810
@@ -135,7 +135,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk
96952bd
 
96952bd
 release_spec: opt
61833ac
 	$(INSTALL_DIR) "$(RELSYSDIR)/src"
61833ac
-	$(INSTALL_DATA) $(HRL_FILES) $(ERL_FILES) "$(RELSYSDIR)/src"
61833ac
+	$(INSTALL_DATA) $(HRL_FILES) "$(RELSYSDIR)/src"
61833ac
 	$(INSTALL_DIR) "$(RELSYSDIR)/ebin"
61833ac
 	$(INSTALL_DATA) $(TARGET_FILES) "$(RELSYSDIR)/ebin"
96952bd
 
96952bd
diff --git a/lib/observer/src/Makefile b/lib/observer/src/Makefile
57b0bc8
index ff2bcbdb99..4973158705 100644
96952bd
--- a/lib/observer/src/Makefile
96952bd
+++ b/lib/observer/src/Makefile
8bed1fa
@@ -149,7 +149,6 @@ include $(ERL_TOP)/make/otp_release_targets.mk
96952bd
 
96952bd
 release_spec: opt
61833ac
 	$(INSTALL_DIR) "$(RELSYSDIR)/src"
61833ac
-	$(INSTALL_DATA) $(ERL_FILES) "$(RELSYSDIR)/src"
61833ac
 	$(INSTALL_DATA) $(INTERNAL_HRL_FILES) "$(RELSYSDIR)/src"
61833ac
 	$(INSTALL_DIR) "$(RELSYSDIR)/examples"
61833ac
 	$(INSTALL_DATA) $(EXAMPLE_FILES) "$(RELSYSDIR)/examples"
96952bd
diff --git a/lib/odbc/src/Makefile b/lib/odbc/src/Makefile
57b0bc8
index 7ca59495ed..a52ade2fe3 100644
96952bd
--- a/lib/odbc/src/Makefile
96952bd
+++ b/lib/odbc/src/Makefile
8448438
@@ -110,7 +110,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk
96952bd
 
96952bd
 release_spec: opt
61833ac
 	$(INSTALL_DIR) "$(RELSYSDIR)/src"
61833ac
-	$(INSTALL_DATA) $(ERL_FILES) $(HRL_FILES) "$(RELSYSDIR)/src"
61833ac
+	$(INSTALL_DATA) $(HRL_FILES) "$(RELSYSDIR)/src"
61833ac
 	$(INSTALL_DIR) "$(RELSYSDIR)/include"
61833ac
 	$(INSTALL_DATA) $(EXT_HRL_FILES) "$(RELSYSDIR)/include"
61833ac
 	$(INSTALL_DIR) "$(RELSYSDIR)/ebin"
96952bd
diff --git a/lib/orber/COSS/CosNaming/Makefile b/lib/orber/COSS/CosNaming/Makefile
57b0bc8
index 108663396c..553c9cdd01 100644
96952bd
--- a/lib/orber/COSS/CosNaming/Makefile
96952bd
+++ b/lib/orber/COSS/CosNaming/Makefile
8448438
@@ -145,8 +145,8 @@ release_spec: opt
61833ac
 	$(INSTALL_DIR) "$(RELSYSDIR)/ebin"
61833ac
 	$(INSTALL_DATA) $(TARGET_FILES) $(APP_TARGET) "$(RELSYSDIR)/ebin"
61833ac
 	$(INSTALL_DIR) "$(RELSYSDIR)/COSS/CosNaming"
61833ac
-	$(INSTALL_DATA) $(ERL_FILES) $(HRL_FILES) $(IDL_FILE) "$(RELSYSDIR)/COSS/CosNaming"
0ba7416
-	$(INSTALL_DATA) $(GEN_FILES) "$(RELSYSDIR)/COSS/CosNaming"
61833ac
+	$(INSTALL_DATA) $(HRL_FILES) $(IDL_FILE) "$(RELSYSDIR)/COSS/CosNaming"
0ba7416
+	$(INSTALL_DATA) $(GEN_HRL_FILES) $(GEN_EXT_HRL_FILES) "$(RELSYSDIR)/COSS/CosNaming"
96952bd
 
96952bd
 
0ba7416
 release_docs_spec:
96952bd
diff --git a/lib/orber/src/Makefile b/lib/orber/src/Makefile
57b0bc8
index 7fec29a000..a71b9f1227 100644
96952bd
--- a/lib/orber/src/Makefile
96952bd
+++ b/lib/orber/src/Makefile
8448438
@@ -253,7 +253,7 @@ release_spec: opt
61833ac
 	$(INSTALL_DIR) "$(RELSYSDIR)/ebin"
61833ac
 	$(INSTALL_DATA) $(TARGET_FILES) $(APP_TARGET) $(APPUP_TARGET) "$(RELSYSDIR)/ebin"
61833ac
 	$(INSTALL_DIR) "$(RELSYSDIR)/src"
61833ac
-	$(INSTALL_DATA) $(ERL_FILES) $(YRL_FILE) $(GEN_HRL_FILES_LOC) $(INTERNAL_HRL_FILES) "$(RELSYSDIR)/src"
61833ac
+	$(INSTALL_DATA) $(GEN_HRL_FILES_LOC) $(INTERNAL_HRL_FILES) "$(RELSYSDIR)/src"
61833ac
 	$(INSTALL_DIR) "$(RELSYSDIR)/include"
61833ac
 	$(INSTALL_DATA) $(EXTERNAL_HRL_FILES) $(GEN_HRL_FILES_EXT) "$(RELSYSDIR)/include"
96952bd
 
96952bd
diff --git a/lib/os_mon/src/Makefile b/lib/os_mon/src/Makefile
57b0bc8
index 29b53a8188..3ae2074f8c 100644
96952bd
--- a/lib/os_mon/src/Makefile
96952bd
+++ b/lib/os_mon/src/Makefile
8448438
@@ -105,7 +105,6 @@ include $(ERL_TOP)/make/otp_release_targets.mk
96952bd
 
96952bd
 release_spec: opt
61833ac
 	$(INSTALL_DIR) "$(RELSYSDIR)/src"
61833ac
-	$(INSTALL_DATA) $(ERL_FILES) "$(RELSYSDIR)/src"
61833ac
 	$(INSTALL_DATA) $(HRL_FILES) "$(RELSYSDIR)/src"
61833ac
 	$(INSTALL_DIR) "$(RELSYSDIR)/ebin"
61833ac
 	$(INSTALL_DATA) $(TARGET_FILES) "$(RELSYSDIR)/ebin"
96952bd
diff --git a/lib/otp_mibs/src/Makefile b/lib/otp_mibs/src/Makefile
57b0bc8
index 4023f50d48..864a0a53d8 100644
96952bd
--- a/lib/otp_mibs/src/Makefile
96952bd
+++ b/lib/otp_mibs/src/Makefile
8448438
@@ -96,8 +96,6 @@ $(APPUP_TARGET): $(APPUP_SRC) ../vsn.mk
96952bd
 include $(ERL_TOP)/make/otp_release_targets.mk
96952bd
 
96952bd
 release_spec: opt
61833ac
-	$(INSTALL_DIR) "$(RELSYSDIR)/src"
61833ac
-	$(INSTALL_DATA) $(ERL_FILES) "$(RELSYSDIR)/src"
61833ac
 	$(INSTALL_DIR) "$(RELSYSDIR)/ebin"
61833ac
 	$(INSTALL_DATA) $(TARGETS) "$(RELSYSDIR)/ebin"
96952bd
 
96952bd
diff --git a/lib/parsetools/src/Makefile b/lib/parsetools/src/Makefile
57b0bc8
index dea29bee4c..655aea91ca 100644
96952bd
--- a/lib/parsetools/src/Makefile
96952bd
+++ b/lib/parsetools/src/Makefile
8448438
@@ -91,8 +91,6 @@ $(APPUP_TARGET): $(APPUP_SRC) ../vsn.mk
96952bd
 include $(ERL_TOP)/make/otp_release_targets.mk
96952bd
 
96952bd
 release_spec: opt
61833ac
-	$(INSTALL_DIR) "$(RELSYSDIR)/src"
61833ac
-	$(INSTALL_DATA) $(ERL_FILES) "$(RELSYSDIR)/src"
61833ac
 	$(INSTALL_DIR) "$(RELSYSDIR)/ebin"
61833ac
 	$(INSTALL_DATA) $(TARGET_FILES) "$(RELSYSDIR)/ebin"
61833ac
 	$(INSTALL_DIR) "$(RELSYSDIR)/include"
96952bd
diff --git a/lib/percept/src/Makefile b/lib/percept/src/Makefile
57b0bc8
index b2ec87d08c..3153e34f7a 100644
96952bd
--- a/lib/percept/src/Makefile
96952bd
+++ b/lib/percept/src/Makefile
8448438
@@ -97,7 +97,6 @@ include $(ERL_TOP)/make/otp_release_targets.mk
96952bd
 
96952bd
 release_spec: opt
2893cc5
 	$(INSTALL_DIR) "$(RELSYSDIR)/src"
61833ac
-	$(INSTALL_DATA) $(ERL_FILES) "$(RELSYSDIR)/src"
2893cc5
 	$(INSTALL_DATA) $(INTERNAL_HRL_FILES) "$(RELSYSDIR)/src"
61833ac
 #	$(INSTALL_DIR) "$(RELSYSDIR)/include"
61833ac
 #	$(INSTALL_DATA) $(HRL_FILES) "$(RELSYSDIR)/include"
0ba7416
diff --git a/lib/public_key/asn1/Makefile b/lib/public_key/asn1/Makefile
57b0bc8
index a920ea87ea..7672ef3470 100644
0ba7416
--- a/lib/public_key/asn1/Makefile
0ba7416
+++ b/lib/public_key/asn1/Makefile
8448438
@@ -96,8 +96,8 @@ release_spec: opt
0ba7416
 	$(INSTALL_DIR) "$(RELSYSDIR)/include"
0ba7416
 	$(INSTALL_DATA) $(HRL_FILES) "$(RELSYSDIR)/include"
0ba7416
 	$(INSTALL_DIR) "$(RELSYSDIR)/asn1"
0ba7416
-	$(INSTALL_DATA) $(ASN_ASNS) $(ASN_ERLS) $(ASN_HRLS) $(ASN_CONFIGS) \
0ba7416
-		 $(GEN_ERLS) "$(RELSYSDIR)/asn1"
0ba7416
+	$(INSTALL_DATA) $(ASN_ASNS) $(ASN_HRLS) $(ASN_CONFIGS) \
0ba7416
+		 "$(RELSYSDIR)/asn1"
0ba7416
 	$(INSTALL_DIR) "$(RELSYSDIR)/ebin"
0ba7416
 	$(INSTALL_DATA) $(TARGET_FILES) "$(RELSYSDIR)/ebin"
0ba7416
 
96952bd
diff --git a/lib/public_key/src/Makefile b/lib/public_key/src/Makefile
57b0bc8
index e61390bce3..6ed6c2cf9f 100644
96952bd
--- a/lib/public_key/src/Makefile
96952bd
+++ b/lib/public_key/src/Makefile
8448438
@@ -109,8 +109,6 @@ $(APPUP_TARGET):	$(APPUP_SRC) ../vsn.mk
96952bd
 include $(ERL_TOP)/make/otp_release_targets.mk
96952bd
 
96952bd
 release_spec: opt
61833ac
-	$(INSTALL_DIR) "$(RELSYSDIR)/src"
61833ac
-	$(INSTALL_DATA) $(INTERNAL_HRL_FILES) $(ERL_FILES) "$(RELSYSDIR)/src"
61833ac
 	$(INSTALL_DIR) "$(RELSYSDIR)/include"
61833ac
 	$(INSTALL_DATA) $(HRL_FILES) "$(RELSYSDIR)/include"
61833ac
 	$(INSTALL_DIR) "$(RELSYSDIR)/ebin"
96952bd
diff --git a/lib/reltool/src/Makefile b/lib/reltool/src/Makefile
57b0bc8
index 4bddee4664..c714255548 100644
96952bd
--- a/lib/reltool/src/Makefile
96952bd
+++ b/lib/reltool/src/Makefile
8448438
@@ -100,7 +100,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk
96952bd
 
96952bd
 release_spec: opt
61833ac
 	$(INSTALL_DIR) "$(RELSYSDIR)/src"
61833ac
-	$(INSTALL_DATA) $(INTERNAL_HRL_FILES) $(ERL_FILES) "$(RELSYSDIR)/src"
61833ac
+	$(INSTALL_DATA) $(INTERNAL_HRL_FILES) "$(RELSYSDIR)/src"
61833ac
 	$(INSTALL_DIR) "$(RELSYSDIR)/ebin"
61833ac
 	$(INSTALL_DATA) $(TARGET_FILES) "$(RELSYSDIR)/ebin"
61833ac
 	$(INSTALL_DATA) $(APP_TARGET) $(APPUP_TARGET) "$(RELSYSDIR)/ebin"
96952bd
diff --git a/lib/runtime_tools/src/Makefile b/lib/runtime_tools/src/Makefile
57b0bc8
index 2c902952a1..d674a8fe13 100644
96952bd
--- a/lib/runtime_tools/src/Makefile
96952bd
+++ b/lib/runtime_tools/src/Makefile
8a7b810
@@ -99,8 +99,6 @@ docs:
96952bd
 include $(ERL_TOP)/make/otp_release_targets.mk
96952bd
 
96952bd
 release_spec: opt
61833ac
-	$(INSTALL_DIR) "$(RELSYSDIR)/src"
61833ac
-	$(INSTALL_DATA) $(ERL_FILES) "$(RELSYSDIR)/src"
61833ac
 	$(INSTALL_DIR) "$(RELSYSDIR)/include"
61833ac
 	$(INSTALL_DATA) $(HRL_FILES) "$(RELSYSDIR)/include"
61833ac
 	$(INSTALL_DIR) "$(RELSYSDIR)/examples"
96952bd
diff --git a/lib/sasl/src/Makefile b/lib/sasl/src/Makefile
57b0bc8
index ac7ee51100..c53f661675 100644
96952bd
--- a/lib/sasl/src/Makefile
96952bd
+++ b/lib/sasl/src/Makefile
8448438
@@ -93,7 +93,6 @@ include $(ERL_TOP)/make/otp_release_targets.mk
96952bd
 
96952bd
 release_spec: opt
61833ac
 	$(INSTALL_DIR) "$(RELSYSDIR)/src"
61833ac
-	$(INSTALL_DATA) $(ERL_FILES) "$(RELSYSDIR)/src"
61833ac
 	$(INSTALL_DATA) $(INTERNAL_HRL_FILES) "$(RELSYSDIR)/src"
61833ac
 	$(INSTALL_DIR) "$(RELSYSDIR)/ebin"
61833ac
 	$(INSTALL_DATA) $(TARGET_FILES) "$(RELSYSDIR)/ebin"
96952bd
diff --git a/lib/snmp/src/agent/Makefile b/lib/snmp/src/agent/Makefile
57b0bc8
index 2943a4d550..8203e62361 100644
96952bd
--- a/lib/snmp/src/agent/Makefile
96952bd
+++ b/lib/snmp/src/agent/Makefile
8448438
@@ -131,7 +131,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk
96952bd
 release_spec: opt
61833ac
 	$(INSTALL_DIR) "$(RELSYSDIR)/src"
61833ac
 	$(INSTALL_DIR) "$(RELSYSDIR)/src/agent"
61833ac
-	$(INSTALL_DATA) $(ERL_FILES) $(HRL_FILES) "$(RELSYSDIR)/src/agent"
61833ac
+	$(INSTALL_DATA) $(HRL_FILES) "$(RELSYSDIR)/src/agent"
61833ac
 	$(INSTALL_DIR) "$(RELSYSDIR)/ebin"
96952bd
 	$(INSTALL_DATA) $(TARGET_FILES) $(APP_TARGET) $(APPUP_TARGET) \
61833ac
 		"$(RELSYSDIR)/ebin"
96952bd
diff --git a/lib/snmp/src/app/Makefile b/lib/snmp/src/app/Makefile
57b0bc8
index 6f2b8a4077..bd062a6473 100644
96952bd
--- a/lib/snmp/src/app/Makefile
96952bd
+++ b/lib/snmp/src/app/Makefile
8448438
@@ -132,7 +132,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk
96952bd
 release_spec: opt
61833ac
 	$(INSTALL_DIR) "$(RELSYSDIR)/src"
61833ac
 	$(INSTALL_DIR) "$(RELSYSDIR)/src/app"
61833ac
-	$(INSTALL_DATA) $(ERL_FILES) $(HRL_FILES) "$(RELSYSDIR)/src/app"
61833ac
+	$(INSTALL_DATA) $(HRL_FILES) "$(RELSYSDIR)/src/app"
61833ac
 	$(INSTALL_DIR) "$(RELSYSDIR)/ebin"
96952bd
 	$(INSTALL_DATA) $(TARGET_FILES) $(APP_TARGET) $(APPUP_TARGET) \
61833ac
 		"$(RELSYSDIR)/ebin"
96952bd
diff --git a/lib/snmp/src/compile/Makefile b/lib/snmp/src/compile/Makefile
57b0bc8
index 4093ffa9ca..18878aa5db 100644
96952bd
--- a/lib/snmp/src/compile/Makefile
96952bd
+++ b/lib/snmp/src/compile/Makefile
8448438
@@ -123,7 +123,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk
96952bd
 release_spec: opt
61833ac
 	$(INSTALL_DIR) "$(RELSYSDIR)/src"
61833ac
 	$(INSTALL_DIR) "$(RELSYSDIR)/src/compiler"
61833ac
-	$(INSTALL_DATA) $(ESCRIPT_SRC) $(PARSER_SRC) $(ERL_FILES) $(INTERNAL_HRL_FILES) "$(RELSYSDIR)/src/compiler"
61833ac
+	$(INSTALL_DATA) $(INTERNAL_HRL_FILES) "$(RELSYSDIR)/src/compiler"
61833ac
 	$(INSTALL_DIR) "$(RELSYSDIR)/ebin"
61833ac
 	$(INSTALL_DATA) $(EBIN_FILES) "$(RELSYSDIR)/ebin"
61833ac
 	$(INSTALL_DIR) "$(RELSYSDIR)/bin"
96952bd
diff --git a/lib/snmp/src/manager/Makefile b/lib/snmp/src/manager/Makefile
57b0bc8
index 0cc87492f1..d203f2846a 100644
96952bd
--- a/lib/snmp/src/manager/Makefile
96952bd
+++ b/lib/snmp/src/manager/Makefile
8448438
@@ -114,7 +114,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk
96952bd
 release_spec: opt
61833ac
 	$(INSTALL_DIR) "$(RELSYSDIR)/src"
61833ac
 	$(INSTALL_DIR) "$(RELSYSDIR)/src/manager"
61833ac
-	$(INSTALL_DATA) $(ERL_FILES) $(HRL_FILES) "$(RELSYSDIR)/src/manager"
61833ac
+	$(INSTALL_DATA) $(HRL_FILES) "$(RELSYSDIR)/src/manager"
61833ac
 	$(INSTALL_DIR) "$(RELSYSDIR)/ebin"
61833ac
 	$(INSTALL_DATA) $(TARGET_FILES) "$(RELSYSDIR)/ebin"
61833ac
 # 	$(INSTALL_DIR) "$(RELSYSDIR)/include"
96952bd
diff --git a/lib/snmp/src/misc/Makefile b/lib/snmp/src/misc/Makefile
57b0bc8
index adc2c4858f..89ce954e99 100644
96952bd
--- a/lib/snmp/src/misc/Makefile
96952bd
+++ b/lib/snmp/src/misc/Makefile
8448438
@@ -112,7 +112,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk
96952bd
 release_spec: opt
61833ac
 	$(INSTALL_DIR) "$(RELSYSDIR)/src"
61833ac
 	$(INSTALL_DIR) "$(RELSYSDIR)/src/misc"
61833ac
-	$(INSTALL_DATA) $(ERL_FILES) $(HRL_FILES) "$(RELSYSDIR)/src/misc"
61833ac
+	$(INSTALL_DATA) $(HRL_FILES) "$(RELSYSDIR)/src/misc"
61833ac
 	$(INSTALL_DIR) "$(RELSYSDIR)/ebin"
61833ac
 	$(INSTALL_DATA) $(TARGET_FILES) "$(RELSYSDIR)/ebin"
61833ac
 # 	$(INSTALL_DIR) "$(RELSYSDIR)/include"
96952bd
diff --git a/lib/ssh/src/Makefile b/lib/ssh/src/Makefile
57b0bc8
index 7ab6f22424..b57da4ad67 100644
96952bd
--- a/lib/ssh/src/Makefile
96952bd
+++ b/lib/ssh/src/Makefile
8a7b810
@@ -136,7 +136,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk
96952bd
 
96952bd
 release_spec: opt
61833ac
 	$(INSTALL_DIR) "$(RELSYSDIR)/src"
61833ac
-	$(INSTALL_DATA) $(INTERNAL_HRL_FILES) $(ERL_FILES) "$(RELSYSDIR)/src"
61833ac
+	$(INSTALL_DATA) $(INTERNAL_HRL_FILES) "$(RELSYSDIR)/src"
61833ac
 	$(INSTALL_DIR) "$(RELSYSDIR)/ebin"
61833ac
 	$(INSTALL_DATA) $(BEHAVIOUR_TARGET_FILES) $(TARGET_FILES) $(APP_TARGET) \
61833ac
 	$(APPUP_TARGET) "$(RELSYSDIR)/ebin"
96952bd
diff --git a/lib/ssl/src/Makefile b/lib/ssl/src/Makefile
57b0bc8
index 2e7df9792e..0cd43d3805 100644
96952bd
--- a/lib/ssl/src/Makefile
96952bd
+++ b/lib/ssl/src/Makefile
dd211a4
@@ -151,7 +151,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk
96952bd
 
96952bd
 release_spec: opt
61833ac
 	$(INSTALL_DIR) "$(RELSYSDIR)/src"
61833ac
-	$(INSTALL_DATA) $(ERL_FILES) $(INTERNAL_HRL_FILES) "$(RELSYSDIR)/src"
61833ac
+	$(INSTALL_DATA) $(INTERNAL_HRL_FILES) "$(RELSYSDIR)/src"
61833ac
 	$(INSTALL_DIR) "$(RELSYSDIR)/ebin"
61833ac
 	$(INSTALL_DATA) $(BEHAVIOUR_TARGET_FILES) $(TARGET_FILES) $(APP_TARGET) \
61833ac
 	$(APPUP_TARGET) "$(RELSYSDIR)/ebin"
96952bd
diff --git a/lib/stdlib/src/Makefile b/lib/stdlib/src/Makefile
57b0bc8
index 302834f9d0..53804f81ff 100644
96952bd
--- a/lib/stdlib/src/Makefile
96952bd
+++ b/lib/stdlib/src/Makefile
8a7b810
@@ -208,7 +208,6 @@ include $(ERL_TOP)/make/otp_release_targets.mk
96952bd
 
96952bd
 release_spec: opt
61833ac
 	$(INSTALL_DIR) "$(RELSYSDIR)/src"
61833ac
-	$(INSTALL_DATA) $(ERL_FILES) erl_parse.yrl "$(RELSYSDIR)/src"
61833ac
 	$(INSTALL_DATA) $(INTERNAL_HRL_FILES) "$(RELSYSDIR)/src"
61833ac
 	$(INSTALL_DIR) "$(RELSYSDIR)/include"
61833ac
 	$(INSTALL_DATA) $(HRL_FILES) "$(RELSYSDIR)/include"
96952bd
diff --git a/lib/syntax_tools/src/Makefile b/lib/syntax_tools/src/Makefile
57b0bc8
index 8325db45a8..d17fdaa0ec 100644
96952bd
--- a/lib/syntax_tools/src/Makefile
96952bd
+++ b/lib/syntax_tools/src/Makefile
8448438
@@ -100,8 +100,6 @@ include $(ERL_TOP)/make/otp_release_targets.mk
96952bd
 release_spec: opt
61833ac
 	$(INSTALL_DIR) "$(RELSYSDIR)/ebin"
61833ac
 	$(INSTALL_DATA) $(OBJECTS) "$(RELSYSDIR)/ebin"
61833ac
-	$(INSTALL_DIR) "$(RELSYSDIR)/src"
61833ac
-	$(INSTALL_DATA) $(SOURCES) "$(RELSYSDIR)/src"
8448438
 	$(INSTALL_DIR) "$(RELSYSDIR)/include"
8448438
 	$(INSTALL_DATA) $(INCLUDE_DELIVERABLES) "$(RELSYSDIR)/include"
96952bd
 
96952bd
diff --git a/lib/tools/src/Makefile b/lib/tools/src/Makefile
57b0bc8
index 032bd612db..efb0309eb8 100644
96952bd
--- a/lib/tools/src/Makefile
96952bd
+++ b/lib/tools/src/Makefile
8a7b810
@@ -106,7 +106,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk
96952bd
 
96952bd
 release_spec: opt
61833ac
 	$(INSTALL_DIR) "$(RELSYSDIR)/src"
61833ac
-	$(INSTALL_DATA) $(ERL_FILES) $(YRL_FILE) $(HRL_FILES) "$(RELSYSDIR)/src"
61833ac
+	$(INSTALL_DATA) $(HRL_FILES) "$(RELSYSDIR)/src"
61833ac
 	$(INSTALL_DIR) "$(RELSYSDIR)/ebin"
96952bd
 	$(INSTALL_DATA) $(TARGET_FILES) $(APP_TARGET) $(APPUP_TARGET) \
61833ac
 		"$(RELSYSDIR)/ebin"
96952bd
diff --git a/lib/typer/src/Makefile b/lib/typer/src/Makefile
57b0bc8
index 6c5d8b0726..82f516a0e5 100644
96952bd
--- a/lib/typer/src/Makefile
96952bd
+++ b/lib/typer/src/Makefile
8448438
@@ -102,9 +102,6 @@ $(APPUP_TARGET): $(APPUP_SRC) ../vsn.mk
61833ac
 include $(ERL_TOP)/make/otp_release_targets.mk
96952bd
 
96952bd
 release_spec: opt
61833ac
-	$(INSTALL_DIR) "$(RELSYSDIR)/src"
96952bd
-	$(INSTALL_DATA) $(ERL_FILES) $(HRL_FILES) $(YRL_FILES) \
61833ac
-		"$(RELSYSDIR)/src"
61833ac
 	$(INSTALL_DIR) "$(RELSYSDIR)/ebin"
61833ac
 	$(INSTALL_DATA) $(INSTALL_FILES) "$(RELSYSDIR)/ebin"
Hans Ulrich Niedermann d00ca99
 
96952bd
diff --git a/lib/wx/src/Makefile b/lib/wx/src/Makefile
57b0bc8
index 21b45af2c4..a7bf34f4f4 100644
96952bd
--- a/lib/wx/src/Makefile
96952bd
+++ b/lib/wx/src/Makefile
8448438
@@ -122,9 +122,9 @@ $(EBIN)/%.beam: $(EGEN)/%.erl $(HEADER_FILES)
96952bd
 include $(ERL_TOP)/make/otp_release_targets.mk
96952bd
 release_spec: opt 
61833ac
 	$(INSTALL_DIR) "$(RELSYSDIR)/src"
61833ac
-	$(INSTALL_DATA) $(HRL_FILES) $(ERL_FILES) "$(RELSYSDIR)/src"
61833ac
+	$(INSTALL_DATA) $(HRL_FILES) "$(RELSYSDIR)/src"
61833ac
 	$(INSTALL_DIR) "$(RELSYSDIR)/src/gen"
61833ac
-	$(INSTALL_DATA) $(GEN_HRL) $(GEN_FILES) "$(RELSYSDIR)/src/gen"
61833ac
+	$(INSTALL_DATA) $(GEN_HRL) "$(RELSYSDIR)/src/gen"
61833ac
 	$(INSTALL_DIR) "$(RELSYSDIR)/include"
61833ac
 	$(INSTALL_DATA) $(EXT_HRL) "$(RELSYSDIR)/include"
61833ac
 	$(INSTALL_DIR) "$(RELSYSDIR)/ebin"
96952bd
diff --git a/lib/xmerl/src/Makefile b/lib/xmerl/src/Makefile
57b0bc8
index 51d9190797..1ab65bd2ed 100644
96952bd
--- a/lib/xmerl/src/Makefile
96952bd
+++ b/lib/xmerl/src/Makefile
8448438
@@ -218,9 +218,7 @@ release_spec: opt
61833ac
 	$(INSTALL_DIR) "$(RELSYSDIR)/ebin"
61833ac
 	$(INSTALL_DATA) $(TARGET_FILES) "$(RELSYSDIR)/ebin"
61833ac
 	$(INSTALL_DIR) "$(RELSYSDIR)/src"
61833ac
-	$(INSTALL_DATA) $(ERL_FILES) $(INTERNAL_HRL_FILES) $(APP_SRC) $(APPUP_SRC) "$(RELSYSDIR)/src"
61833ac
-	$(INSTALL_DATA) xmerl_xpath_parse.yrl "$(RELSYSDIR)/src"
61833ac
-	$(INSTALL_DATA) xmerl_b64Bin.yrl "$(RELSYSDIR)/src"
61833ac
+	$(INSTALL_DATA) $(INTERNAL_HRL_FILES) "$(RELSYSDIR)/src"
61833ac
 	$(INSTALL_DIR) "$(RELSYSDIR)/include"
61833ac
 	$(INSTALL_DATA) $(HRL_FILES) "$(RELSYSDIR)/include"
96952bd