Re-add the 'regen' targets lost in the automake transition
This might need a lot of cleanup for out-of-source-tree builds and the
like, but let's not spend time on this now. The old Makefile also
didn't support that. But loosing the ability to regenerate the C source
is not an option either.
diff --git a/src/rua/Makefile.am b/src/rua/Makefile.am
index 2690252..c93b801 100644
--- a/src/rua/Makefile.am
+++ b/src/rua/Makefile.am
@@ -79,3 +79,10 @@
include_HEADERS=$(ASN_MODULES_INC)
libosmo_asn1_rua_a_LIBADD=$(ASN1C_LDADD)
+regen: regenerate-from-asn1-source
+
+regenerate-from-asn1-source:
+ ASN1C_PREFIX="RUA_" asn1c -gen-PER ../../asn1/rua/RUA-CommonDataTypes.asn ../../asn1/rua/RUA-Constants.asn ../../asn1/rua/RUA-IEs.asn ../../asn1/rua/RUA-PDU.asn
+# remove the local copy of the runtime code
+ @rm ANY.* BOOLEAN.* INTEGER.* NativeEnumerated.* NativeInteger.* OBJECT_IDENTIFIER.* asn_* OCTET_STRING.* converter-sample.c per_* xer_* constr* der_* ber_* BIT_STRING.*
+