src/*/Makefile.am: Copy back to srcdir the generated .c files from ASN

Change-Id: I203a25a8059218bb9fd6d10cbc028a296d347382
This commit is contained in:
Pau Espin 2021-10-23 01:01:04 +02:00
parent e395b75619
commit 861d9d2ebf
4 changed files with 16 additions and 1 deletions

View File

@ -248,3 +248,7 @@ regenerate-from-asn1-source:
-rm ANY.* BOOLEAN.* INTEGER.* NativeEnumerated.* NativeInteger.* OBJECT_IDENTIFIER.* asn_* OCTET_STRING.* converter-sample.c per_* xer_* constr* der_* ber_* BIT_STRING.*
# change include style to `#include <dir/foo.h>'
$(top_srcdir)/move-asn1-header-files.sh osmocom/hnbap $(ASN_MODULE_INC)
# Finally copy *.c from buildir to srcdir:
if test "$(realpath $(CURDIR))" != "$(realpath $(top_srcdir)/src/hnbap)"; then \
cp *.c $(top_srcdir)/src/hnbap/; \
fi

View File

@ -1188,3 +1188,7 @@ regenerate-from-asn1-source:
sed -i 's/Member/MemberN/' RANAP_RABDataVolumeReport.[ch]
# change include style to `#include <dir/foo.h>'
$(top_srcdir)/move-asn1-header-files.sh osmocom/ranap $(ASN_MODULE_INC)
# Finally copy *.c from buildir to srcdir:
if test "$(realpath $(CURDIR))" != "$(realpath $(top_srcdir)/src/ranap)"; then \
cp *.c $(top_srcdir)/src/ranap/; \
fi

View File

@ -86,3 +86,7 @@ regenerate-from-asn1-source:
@rm ANY.* BOOLEAN.* INTEGER.* NativeEnumerated.* NativeInteger.* OBJECT_IDENTIFIER.* asn_* OCTET_STRING.* converter-sample.c per_* xer_* constr* der_* ber_* BIT_STRING.*
# change include style to `#include <dir/foo.h>'
$(top_srcdir)/move-asn1-header-files.sh osmocom/rua $(ASN_MODULE_INC)
# Finally copy *.c from buildir to srcdir:
if test "$(realpath $(CURDIR))" != "$(realpath $(top_srcdir)/src/rua)"; then \
cp *.c $(top_srcdir)/src/rua/; \
fi

View File

@ -145,4 +145,7 @@ regenerate-from-asn1-source:
sed -i '/#include "SABP_Serial-Number.h"/a #include <constr_CHOICE.h>' SABP_Old-Serial-Number.h SABP_New-Serial-Number.h
# change include style to `#include <dir/foo.h>'
$(top_srcdir)/move-asn1-header-files.sh osmocom/sabp $(ASN_MODULE_INC)
# Finally copy *.c from buildir to srcdir:
if test "$(realpath $(CURDIR))" != "$(realpath $(top_srcdir)/src/sabp)"; then \
cp *.c $(top_srcdir)/src/sabp/; \
fi