Debian Codegraph @

HACKING

raw
1 -*- mode: org; coding: utf-8; -*-
2
3 #+TITLE: Hacking zlib
4
5 * Contributing
6
7 By far the easiest way to hack on zlib is to develop using Guix:
8
9 #+BEGIN_SRC bash
10 # Obtain the source code
11 cd /path/to/source-code
12 guix environment -l guix.scm
13 # In the new shell, run:
14 hall dist --execute && autoreconf -vif && ./configure && make check
15 #+END_SRC
16
17 You can now hack this project's files to your heart's content, whilst
18 testing them from your `guix environment' shell.
19
20 If you'd like to tidy the project again, but retain the ability to test the
21 project from the commandline, simply run:
22
23 #+BEGIN_SRC bash
24 ./hall clean --skip "pre-inst-env" --execute
25 #+END_SRC
26
27 ** Manual Installation
28
29 If you do not yet use Guix, you will have to install this project's
30 dependencies manually:
31 - autoconf
32 - automake
33 - pkg-config
34 - texinfo
35 - guile-hall
36 - zlib
37
38 Once those dependencies are installed you can run:
39
40 #+BEGIN_SRC bash
41 hall dist -x && autoreconf -vif && ./configure && make check
42 #+END_SRC