Commit b88807e6 authored by Maxime Perrotin's avatar Maxime Perrotin
Browse files

Improve templates

parent b10344b9
......@@ -81,6 +81,7 @@ package body TASTE.Backend.Skeletons is
Unique_Languages : Tag;
Functions_Tag : Vector_Tag;
Language_Tag : Vector_Tag;
Is_Type_Tag : Vector_Tag;
Content_Set : Translate_Set;
Tmplt : constant String := Prefix & "makefile.tmplt";
begin
......@@ -91,12 +92,14 @@ package body TASTE.Backend.Skeletons is
Languages := Languages or To_Set (US (Language_Spelling (Each)));
Functions_Tag := Functions_Tag & Each.Name;
Language_Tag := Language_Tag & Language_Spelling (Each);
Is_Type_Tag := Is_Type_Tag & Each.Is_Type;
end loop;
for Each of Languages loop
Unique_Languages := Unique_Languages & To_String (Each);
end loop;
Content_Set := +Assoc ("Function_Names", Functions_Tag)
& Assoc ("Language", Language_Tag)
& Assoc ("Is_Type", Is_Type_Tag)
& Assoc ("Unique_Languages", Unique_Languages)
& Assoc ("ASN1_Files", Get_ASN1_File_List)
& Assoc ("ASN1_Modules", Get_Module_List);
......
package TASTE.Parser_Version is
Parser_Release : constant String :=
"8fd8111 ; Commit Date: Sat Mar 17 11:05:10 2018 ";
"b10344b ; Commit Date: Sat Mar 17 17:31:49 2018 ";
Ocarina_Version : constant String :=
"Ocarina 2017.x (Working Copy from r2a52334)";
end TASTE.Parser_Version;
\ No newline at end of file
......@@ -44,7 +44,18 @@ dataviews:
@@END_IF@@
@@END_TABLE@@
compile-all-linux: dataviews
function-types-linux:
@@TABLE@@
@@IF@@ @_Is_Type_@
cd @_LOWER:Function_Names_@/@_Language_@ && make compile-linux
@@END_IF@@
@@END_TABLE@@
function-instances-linux: function-types-linux
@@TABLE@@
@@IF@@ not @_Is_Type_@
cd @_LOWER:Function_Names_@/@_Language_@ && make compile-linux
@@END_IF@@
@@END_TABLE@@
compile-all-linux: dataviews function-instances-linux
......@@ -15,10 +15,12 @@ compile-linux:
mkdir -p obj && cd obj && \
@@IF@@ @_EXIST:Instance_Of_@
opengeode --toAda ../src/system_structure.pr ../../../@_LOWER:Instance_Of_@/SDL/src/@_LOWER:Instance_Of_@.pr && \
rm ../src/@_LOWER:Instance_Of_@.ad? && \
ADA_INCLUDE_PATH=../../../@_LOWER:Instance_Of_@/SDL/src/:../../../dataview/Ada gnat make ../src/@_LOWER:Name_@
@@ELSE@@
opengeode --toAda ../src/@_LOWER:Name_@.pr ../src/system_structure.pr && \
@@END_IF@@
@@IF@@ not @_Is_Type_@
@@IF@@ not @_Is_Type_@ and not @_EXIST:Instance_Of_@
ADA_INCLUDE_PATH=../../../dataview/Ada gnat make ../src/@_LOWER:Name_@
@@ELSE@@
:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment