File: README.md

package info (click to toggle)
libtemplates-parser 25.0.0-2
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 3,404 kB
  • sloc: ada: 12,020; python: 658; makefile: 351; sh: 37
file content (72 lines) | stat: -rw-r--r-- 1,543 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
Templates_Parser
================

This repository hosts the `Templates_Parser` library and the associated
`templates2ada` program. These are tools to create templated text streams, such
as dynamic HTML documents.

To learn more about them, you can either read our Sphinx documentation [in this
repository](docs/) or read it from [AdaCore's live
docs](https://docs.adacore.com/live/wave/aws/html/template_parser/index.html).

Build
-----

Some make variables can be adjusted to change the default setup:

```text
DEFAULT_LIBRARY_TYPE=[static|relocatable]
    (default is static)

prefix=<install directory>
    (default to compiler root directory)

ENABLE_STATIC=[true|false]
    (default true)

ENABLE_SHARED=[true|false]
    (default yes on platforms supporting shared libraries)

DEBUG=[true|false]
    (default false)

PROCESSORS=N
    Number of parallel compilations
    (default 2)
```

To build both the static and shared version (if supported) using the default
setup:

```sh
$ make
```

To setup the default library as relocatable and change the installation
directory:

```sh
$ make DEFAULT_LIBRARY_TYPE=relocatable prefix=/opt/templates_parser setup
$ make
```

To install:

```sh
$ make install
```

Note that the installation will be done into your current GNAT root directory
by default. It is possible to change this default by setting the prefix make
variable, for example:

```
$ make prefix=/opt/templates_parser install
```

or using the setup step:

```
$ make prefix=/opt/templates_parser setup
$ make && make install
```