public inbox for ~johnnyrichard/olang-devel@lists.sr.ht
 help / color / mirror / code / Atom feed
d61b0e902a6a4b300824ab60024c919202f79bb6 blob 2024 bytes (raw)

 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
73
74
75
76
77
78
79
80
 
@node Installation
@chapter Installation

This installation assumes you are running an unix like operation system and
requires @code{make}, @code{makeinfo} and a @strong{c compiler} installed.

The following commands will compile the the code and install @code{olang}
binary, @code{man} pages and @code{info} docs into your system.

@verbatim
$ make
$ make install
@end verbatim

And for uninstall the program run

@verbatim
$ make uninstall
@end verbatim

@section Custom Installation

There are few @code{make} variables which can be used to customize your
installation as described bellow.

@table @samp

@item PREFIX

The prefix where the compiler and docs should be installed, it is set to
@code{/usr/local} if not specified.

@item BINDIR

The path where the compiler binary will be installed, it is set to
@code{$PREFIX/bin} if not specified.

@item DATADIR

The path where the read-only documents will be installed, it is set to
@code{$PREFIX/share} if not specified.

@item MANDIR

The path where the man documents will be installed, it is set to
@code{$DATADIR/man} if not specified.

@item MAN1DIR

The path where the man1 documents will be installed, it is set to
@code{$MANDIR/man1} if not specified.

@item INFODIR

The path where the info documents will be installed, it is set to
@code{$DATADIR/info} if not specified.

@item DESTDIR

In case you are installing the compiler on different root than @code{/} (by
default the install assumes the destination dir as root), you can set the
variable @strong{DESTDIR} on @code{make} for example:

@verbatim
$ make DESTDIR=/mnt/linux-root install
@end verbatim

@end table

@section Developer Tips

If you want to install the compiler but do not want to make it system
available, you might want to have it installed on the @code{XDG}
@strong{~/.local} directory.  Make sure you have set @code{PATH},
@code{MANPATH} and @code{INFOPATH} correctly so you can have the resources
installed available on your shell.

@verbatim
$ make PREFIX=~/.local install
@end verbatim
debug log:

solving d61b0e9 ...
found d61b0e9 in https://git.johnnyrichard.com/olang.git

Code repositories for project(s) associated with this public inbox

	https://git.johnnyrichard.com/olang.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox