-
Notifications
You must be signed in to change notification settings - Fork 2
/
README-hacking
96 lines (59 loc) · 2.33 KB
/
README-hacking
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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
This README-hacking file describes the development environment.
Everything related to the development of GNU lightning is on Savannah:
https://savannah.gnu.org/projects/lightning/.
* Working from the Repository
** Autotools
This distribution uses the latest stable versions of Automake, Autoconf. If
you are getting the sources from git (or change configure.ac), you'll need
to have these tools installed to (re)build. All
of these programs are available from ftp://ftp.gnu.org/gnu.
If you're using a GNU/Linux distribution, the easiest way to install these
packages depends on your system. The following shell command should work
for Debian-based systems such as Ubuntu:
$ sudo apt-get install autoconf automake
** Building
After getting the git sources, and installing the tools above, you can run
$ ./bootstrap
$ ./configure
$ make
$ make check
to do a fresh build. At this point, there should be no difference between
your local copy, and the master copy:
$ git diff
should output no difference.
After that first time, running make should suffice.
** Gnulib
This distribution also uses Gnulib (https://www.gnu.org/software/gnulib) to
share common files, stored as a submodule in git.
** Updating
$ git pull
$ git submodule update
** Updating a submodule
To update a submodule, say gnulib, do as follows:
Get the most recent version of the master branch from git.
$ cd gnulib
$ git pull
Make sure GNU lightning can live with that version of gnulib.
$ cd ..
$ ./bootstrap
$ make distcheck
Register your changes.
$ git commit ...
----
Copyright 2021 Free Software Foundation, Inc.
This file is part of GNU lightning.
GNU lightning is free software; you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as
published by the Free Software Foundation; either version 3, or (at
your option) any later version.
GNU lightning is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this program. If not, see
<http://www.gnu.org/licenses/>.
Local Variables:
mode: outline
fill-column: 76
End: