|
Peter Lemenkov |
96952b |
From: Peter Lemenkov <lemenkov@gmail.com>
|
|
Peter Lemenkov |
96952b |
Date: Fri, 18 Jun 2010 23:41:33 +0400
|
|
Hans Ulrich Niedermann |
696873 |
Subject: [PATCH] Do not install C sources
|
|
Peter Lemenkov |
96952b |
|
|
|
a6c182 |
Don't install *.c and *.o files.
|
|
|
a6c182 |
|
|
|
a6c182 |
Excepts ones from the internal erl_interface. These
|
|
|
a6c182 |
API headers are necessary. See rhbz #818419 for the
|
|
|
a6c182 |
explanation why they're necessary for the low-level
|
|
|
a6c182 |
interaction with the Erlang nodes:
|
|
|
a6c182 |
|
|
|
a6c182 |
https://bugzilla.redhat.com/818419
|
|
|
5203c4 |
|
|
Peter Lemenkov |
96952b |
Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
|
|
Peter Lemenkov |
96952b |
|
|
Peter Lemenkov |
96952b |
diff --git a/lib/asn1/c_src/Makefile b/lib/asn1/c_src/Makefile
|
|
|
844843 |
index 2b72e1a..0522562 100644
|
|
Peter Lemenkov |
96952b |
--- a/lib/asn1/c_src/Makefile
|
|
Peter Lemenkov |
96952b |
+++ b/lib/asn1/c_src/Makefile
|
|
|
844843 |
@@ -143,8 +143,6 @@ release_spec: opt
|
|
|
eeecf7 |
ifneq ($(findstring ose,$(TARGET)),ose)
|
|
|
61833a |
$(INSTALL_PROGRAM) $(NIF_SHARED_OBJ_FILE) "$(RELSYSDIR)/priv/lib"
|
|
|
eeecf7 |
endif
|
|
|
61833a |
- $(INSTALL_DIR) "$(RELSYSDIR)/c_src"
|
|
|
61833a |
- $(INSTALL_DATA) *.c "$(RELSYSDIR)/c_src"
|
|
Peter Lemenkov |
96952b |
|
|
Peter Lemenkov |
96952b |
release_docs_spec:
|
|
Peter Lemenkov |
96952b |
|
|
Peter Lemenkov |
96952b |
diff --git a/lib/crypto/c_src/Makefile.in b/lib/crypto/c_src/Makefile.in
|
|
|
844843 |
index 574cdf5..428c316 100644
|
|
Peter Lemenkov |
96952b |
--- a/lib/crypto/c_src/Makefile.in
|
|
Peter Lemenkov |
96952b |
+++ b/lib/crypto/c_src/Makefile.in
|
|
|
844843 |
@@ -200,14 +200,10 @@ 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)/priv/obj"
|
|
|
61833a |
$(INSTALL_DIR) "$(RELSYSDIR)/priv/lib"
|
|
|
61833a |
- $(INSTALL_DATA) $(NIF_MAKEFILE) "$(RELSYSDIR)/priv/obj"
|
|
|
eeecf7 |
ifneq ($(findstring ose,$(TARGET)),ose)
|
|
|
a6c182 |
- $(INSTALL_PROGRAM) $(CRYPTO_OBJS) "$(RELSYSDIR)/priv/obj"
|
|
|
61833a |
$(INSTALL_PROGRAM) $(NIF_LIB) "$(RELSYSDIR)/priv/lib"
|
|
|
a6c182 |
ifeq ($(DYNAMIC_CRYPTO_LIB),yes)
|
|
|
a6c182 |
- $(INSTALL_PROGRAM) $(CALLBACK_OBJS) "$(RELSYSDIR)/priv/obj"
|
|
|
a6c182 |
$(INSTALL_PROGRAM) $(CALLBACK_LIB) "$(RELSYSDIR)/priv/lib"
|
|
|
a6c182 |
endif
|
|
|
eeecf7 |
endif
|
|
Peter Lemenkov |
96952b |
diff --git a/lib/erl_interface/src/Makefile.in b/lib/erl_interface/src/Makefile.in
|
|
|
844843 |
index 777d709..57917ae 100644
|
|
Peter Lemenkov |
96952b |
--- a/lib/erl_interface/src/Makefile.in
|
|
Peter Lemenkov |
96952b |
+++ b/lib/erl_interface/src/Makefile.in
|
|
|
844843 |
@@ -905,14 +905,14 @@ ifneq ($(EXE_TARGETS),)
|
|
|
61833a |
$(INSTALL_PROGRAM) $(EXE_TARGETS) "$(RELSYSDIR)/bin"
|
|
Peter Lemenkov |
96952b |
endif
|
|
|
a6c182 |
$(INSTALL_DATA) $(EXTRA) "$(RELSYSDIR)/src"
|
|
|
61833a |
- $(INSTALL_DATA) connect/*.[ch] "$(RELSYSDIR)/src/connect"
|
|
|
61833a |
- $(INSTALL_DATA) decode/*.[ch] "$(RELSYSDIR)/src/decode"
|
|
|
61833a |
- $(INSTALL_DATA) encode/*.[ch] "$(RELSYSDIR)/src/encode"
|
|
|
61833a |
- $(INSTALL_DATA) epmd/*.[ch] "$(RELSYSDIR)/src/epmd"
|
|
|
61833a |
- $(INSTALL_DATA) misc/*.[ch] "$(RELSYSDIR)/src/misc"
|
|
|
61833a |
- $(INSTALL_DATA) registry/*.[ch] "$(RELSYSDIR)/src/registry"
|
|
|
61833a |
- $(INSTALL_DATA) legacy/*.[ch] "$(RELSYSDIR)/src/legacy"
|
|
|
61833a |
- $(INSTALL_DATA) prog/*.[ch] "$(RELSYSDIR)/src/prog"
|
|
|
a6c182 |
+ $(INSTALL_DATA) connect/*.h "$(RELSYSDIR)/src/connect"
|
|
|
a6c182 |
+ $(INSTALL_DATA) decode/*.h "$(RELSYSDIR)/src/decode"
|
|
|
a6c182 |
+ $(INSTALL_DATA) encode/*.h "$(RELSYSDIR)/src/encode"
|
|
|
a6c182 |
+ $(INSTALL_DATA) epmd/*.h "$(RELSYSDIR)/src/epmd"
|
|
|
a6c182 |
+ $(INSTALL_DATA) misc/*.h "$(RELSYSDIR)/src/misc"
|
|
|
a6c182 |
+ $(INSTALL_DATA) registry/*.h "$(RELSYSDIR)/src/registry"
|
|
|
a6c182 |
+ $(INSTALL_DATA) legacy/*.h "$(RELSYSDIR)/src/legacy"
|
|
|
a6c182 |
+ $(INSTALL_DATA) prog/*.h "$(RELSYSDIR)/src/prog"
|
|
Peter Lemenkov |
96952b |
|
|
Peter Lemenkov |
96952b |
release_docs:
|
|
Peter Lemenkov |
96952b |
|
|
Peter Lemenkov |
96952b |
diff --git a/lib/ic/c_src/Makefile.in b/lib/ic/c_src/Makefile.in
|
|
|
844843 |
index b9f92a0..9612f24 100644
|
|
Peter Lemenkov |
96952b |
--- a/lib/ic/c_src/Makefile.in
|
|
Peter Lemenkov |
96952b |
+++ b/lib/ic/c_src/Makefile.in
|
|
|
844843 |
@@ -145,12 +145,10 @@ $(OBJDIR)/%.o: %.c
|
|
Peter Lemenkov |
96952b |
include $(ERL_TOP)/make/otp_release_targets.mk
|
|
Peter Lemenkov |
96952b |
|
|
Peter Lemenkov |
96952b |
release_spec: opt
|
|
|
61833a |
- $(INSTALL_DIR) "$(RELSYSDIR)/c_src"
|
|
|
61833a |
$(INSTALL_DIR) "$(RELSYSDIR)/include"
|
|
|
61833a |
$(INSTALL_DIR) "$(RELSYSDIR)/priv/lib"
|
|
|
9a9df5 |
$(INSTALL_DIR) "$(RELEASE_PATH)/usr/include"
|
|
|
9a9df5 |
$(INSTALL_DIR) "$(RELEASE_PATH)/usr/lib"
|
|
|
61833a |
- $(INSTALL_DATA) ic.c ic_tmo.c "$(RELSYSDIR)/c_src"
|
|
|
61833a |
$(INSTALL_DATA) $(IDL_FILES) $(H_FILES) "$(RELSYSDIR)/include"
|
|
|
61833a |
$(INSTALL_DATA) $(LIBRARY) "$(RELSYSDIR)/priv/lib"
|
|
|
9a9df5 |
$(INSTALL_DATA) $(IDL_FILES) $(H_FILES) "$(RELEASE_PATH)/usr/include"
|
|
Peter Lemenkov |
96952b |
diff --git a/lib/megaco/src/flex/Makefile.in b/lib/megaco/src/flex/Makefile.in
|
|
|
844843 |
index 045b6d8..39be02a 100644
|
|
Peter Lemenkov |
96952b |
--- a/lib/megaco/src/flex/Makefile.in
|
|
Peter Lemenkov |
96952b |
+++ b/lib/megaco/src/flex/Makefile.in
|
|
|
844843 |
@@ -271,7 +271,7 @@ release_spec: opt
|
|
|
61833a |
$(INSTALL_DATA) $(ERL_FILES) $(INTERNAL_HRL_FILES) "$(RELSYSDIR)/src/flex"
|
|
|
61833a |
$(INSTALL_DATA) $(TARGET_FILES) "$(RELSYSDIR)/ebin"
|
|
Peter Lemenkov |
96952b |
ifeq ($(ENABLE_MEGACO_FLEX_SCANNER),true)
|
|
|
61833a |
- $(INSTALL_DATA) $(FLEX_FILES) $(C_TARGETS) "$(RELSYSDIR)/src/flex"
|
|
|
61833a |
+ $(INSTALL_DATA) $(FLEX_FILES) "$(RELSYSDIR)/src/flex"
|
|
|
61833a |
$(INSTALL_PROGRAM) $(SOLIBS) "$(RELSYSDIR)/priv/lib"
|
|
Peter Lemenkov |
96952b |
endif
|
|
Peter Lemenkov |
96952b |
|
|
Peter Lemenkov |
96952b |
diff --git a/lib/odbc/c_src/Makefile.in b/lib/odbc/c_src/Makefile.in
|
|
|
844843 |
index 685eb5d..6c8a432 100644
|
|
Peter Lemenkov |
96952b |
--- a/lib/odbc/c_src/Makefile.in
|
|
Peter Lemenkov |
96952b |
+++ b/lib/odbc/c_src/Makefile.in
|
|
|
844843 |
@@ -129,11 +129,8 @@ include $(ERL_TOP)/make/otp_release_targets.mk
|
|
Peter Lemenkov |
96952b |
|
|
Peter Lemenkov |
96952b |
release_spec: opt
|
|
Peter Lemenkov |
96952b |
ifdef EXE_TARGET
|
|
|
61833a |
- $(INSTALL_DIR) "$(RELSYSDIR)/c_src"
|
|
|
61833a |
- $(INSTALL_DATA) $(C_FILES) $(H_FILES) "$(RELSYSDIR)/c_src"
|
|
|
61833a |
$(INSTALL_DIR) "$(RELSYSDIR)/priv"
|
|
|
61833a |
$(INSTALL_DIR) "$(RELSYSDIR)/priv/bin"
|
|
|
61833a |
- $(INSTALL_DIR) "$(RELSYSDIR)/priv/obj"
|
|
|
61833a |
$(INSTALL_PROGRAM) $(EXE_TARGET) "$(RELSYSDIR)/priv/bin"
|
|
Peter Lemenkov |
96952b |
endif
|
|
Peter Lemenkov |
96952b |
|
|
Peter Lemenkov |
96952b |
diff --git a/lib/os_mon/c_src/Makefile.in b/lib/os_mon/c_src/Makefile.in
|
|
|
844843 |
index e9fc5f4..ac9fb73 100644
|
|
Peter Lemenkov |
96952b |
--- a/lib/os_mon/c_src/Makefile.in
|
|
Peter Lemenkov |
96952b |
+++ b/lib/os_mon/c_src/Makefile.in
|
|
|
844843 |
@@ -126,8 +126,6 @@ $(OBJDIR)/memsup.o: memsup.h
|
|
|
a6c182 |
include $(ERL_TOP)/make/otp_release_targets.mk
|
|
|
a6c182 |
|
|
Peter Lemenkov |
96952b |
release_spec: opt
|
|
|
61833a |
- $(INSTALL_DIR) "$(RELSYSDIR)/src"
|
|
|
61833a |
- $(INSTALL_DATA) $(C_FILES) "$(RELSYSDIR)/src"
|
|
|
61833a |
$(INSTALL_DIR) "$(RELSYSDIR)/priv/bin"
|
|
|
61833a |
$(INSTALL_PROGRAM) $(TARGET_FILES) "$(RELSYSDIR)/priv/bin"
|
|
|
a6c182 |
|
|
|
5203c4 |
diff --git a/lib/runtime_tools/c_src/Makefile.in b/lib/runtime_tools/c_src/Makefile.in
|
|
|
844843 |
index 448b8c6..860d504 100644
|
|
|
5203c4 |
--- a/lib/runtime_tools/c_src/Makefile.in
|
|
|
5203c4 |
+++ b/lib/runtime_tools/c_src/Makefile.in
|
|
|
844843 |
@@ -157,10 +157,8 @@ docs:
|
|
|
5203c4 |
include $(ERL_TOP)/make/otp_release_targets.mk
|
|
|
5203c4 |
|
|
|
5203c4 |
release_spec: opt
|
|
|
61833a |
- $(INSTALL_DIR) "$(RELSYSDIR)/priv/obj"
|
|
|
61833a |
$(INSTALL_DIR) "$(RELSYSDIR)/priv/lib"
|
|
|
eeecf7 |
ifneq ($(findstring ose,$(TARGET)),ose)
|
|
|
61833a |
- $(INSTALL_PROGRAM) $(DYNTRACE_OBJS) "$(RELSYSDIR)/priv/obj"
|
|
|
61833a |
$(INSTALL_PROGRAM) $(NIF_LIB) $(SOLIBS) "$(RELSYSDIR)/priv/lib"
|
|
|
eeecf7 |
endif
|
|
|
5203c4 |
|
|
Peter Lemenkov |
96952b |
diff --git a/lib/tools/c_src/Makefile.in b/lib/tools/c_src/Makefile.in
|
|
|
844843 |
index 66bba22..eea37fc 100644
|
|
Peter Lemenkov |
96952b |
--- a/lib/tools/c_src/Makefile.in
|
|
Peter Lemenkov |
96952b |
+++ b/lib/tools/c_src/Makefile.in
|
|
|
844843 |
@@ -198,8 +198,6 @@ include ../vsn.mk
|
|
Peter Lemenkov |
96952b |
RELSYSDIR = $(RELEASE_PATH)/lib/tools-$(TOOLS_VSN)
|
|
Peter Lemenkov |
96952b |
|
|
Peter Lemenkov |
96952b |
release_spec: all
|
|
|
61833a |
- $(INSTALL_DIR) "$(RELSYSDIR)/c_src"
|
|
|
61833a |
- $(INSTALL_DATA) $(EMEM_SRCS) $(EMEM_HEADERS) "$(RELSYSDIR)/c_src"
|
|
Peter Lemenkov |
96952b |
ifneq ($(PROGS),)
|
|
|
61833a |
$(INSTALL_DIR) "$(RELSYSDIR)/bin"
|
|
|
61833a |
$(INSTALL_PROGRAM) $(PROGS) "$(RELSYSDIR)/bin"
|