|
1 | 1 | Build: |
2 | | - |
3 | 2 | make |
| 3 | + or |
| 4 | + make clean all |
4 | 5 |
|
5 | 6 | Install: |
6 | | - |
7 | 7 | sudo make install |
8 | 8 |
|
9 | 9 | Unininstall: |
10 | | - |
11 | 10 | sudo make uninstall |
12 | 11 |
|
13 | | - |
14 | | -Other build targets: |
15 | | --------------------------------------------------------------------------------- |
16 | | - |
17 | | -Generate a .deb package, for release |
18 | | - |
19 | | -Updates .deb_pkg_version.mak |
20 | | -Unconditional full clean & build everytime |
21 | | -deb filename increments with every run, either by build number or by pkg version |
22 | | - |
23 | | - make release_deb |
24 | | - |
25 | 12 | -------------------------------------------------------------------------------- |
26 | 13 |
|
27 | | -Build just the console app |
| 14 | +deb packages: |
28 | 15 |
|
29 | | - make mainline |
| 16 | +Install pbuilder-dist: |
| 17 | + sudo apt install pbuilder-dist |
30 | 18 |
|
31 | | --------------------------------------------------------------------------------- |
32 | | - |
33 | | -Build just the GUI app |
| 19 | +To create the deb build environment, run one time only. |
| 20 | + make deb_env_create |
34 | 21 |
|
35 | | - make mainline-gtk |
| 22 | +To update the build environment, run as needed. |
| 23 | + make deb_env_update |
36 | 24 |
|
37 | | --------------------------------------------------------------------------------- |
38 | | - |
39 | | -Generate a .deb package, for local repeated re-building |
| 25 | +To (re)build a deb without incrementing build number or doing make clean. |
| 26 | + make deb |
40 | 27 |
|
41 | | -Does not update .deb_pkg_version.mak |
42 | | -Only builds if not yet built or if any source files changed |
43 | | -deb filename does not increment |
| 28 | +To build a deb for release. Increments build number and does clean before build. |
| 29 | + make release_deb |
44 | 30 |
|
45 | | - make deb |
| 31 | +For any of the deb-related build targets, you may also build for some other target |
| 32 | +distribution by adding "dist=<dist>" and/or "arch=<arch>" to the end of the command. |
46 | 33 |
|
47 | | --------------------------------------------------------------------------------- |
| 34 | +So, to build a deb for xenial (if you're not running xenial), |
| 35 | +first, one-time setup |
| 36 | + make deb_env_create dist=xenial |
| 37 | +then |
| 38 | + make deb dist=xenial |
48 | 39 |
|
49 | 40 | Install the currently built deb |
50 | 41 | Allows to install built deb without having to know it's long path & filename |
51 | 42 | Already includes sudo, don't need "sudo make install-deb" |
52 | | - |
53 | 43 | make install-deb |
54 | 44 |
|
55 | | --------------------------------------------------------------------------------- |
56 | | - |
57 | 45 | Uninstall any version of deb package that might be installed |
58 | 46 | Allows to test "make install" without conflict or ambiguity with installed deb |
59 | 47 | Already includes sudo, don't need "sudo make uninstall-deb" |
60 | | - |
61 | 48 | make uninstall-deb |
62 | 49 |
|
63 | | --------------------------------------------------------------------------------- |
64 | | - |
65 | | -Translation files are maintained automatically, but you can regenerate any of |
66 | | -them manually with "make <filename>" |
67 | | -All translation files are in the po/ directory, and named <LANG>.po |
68 | | -The po template is in the po/ directory, and named messages.pot |
69 | | - |
70 | | -Regenerate messages.pot |
71 | | - make po/messages.pot |
72 | | - |
73 | | -Regenerate the Spanish .po file (same for any po/*.po files) |
74 | | - make po/es.po |
75 | | - |
76 | | --------------------------------------------------------------------------------- |
77 | | - |
78 | | -The files listed in $(misc_files) are maintained automatically, but you can |
79 | | -regenerate any of them manually with "make <filename>". |
80 | | -Examples: |
81 | | - |
82 | | -Regenerate README.md from README.md.src |
83 | | - make README.md |
84 | | - |
85 | | -Regenerate debian/copyright from debian/copyright.src |
86 | | - make debian/copyright |
87 | | - |
88 | | --------------------------------------------------------------------------------- |
89 | | - |
90 | 50 | debian/changelog is maintained automatically (that is, "dch" is called when |
91 | 51 | needed, you still have to manually edit once dch launches the editor), but you |
92 | 52 | can also update it manually any time. |
93 | 53 | This will run "dch" with appropriate commandline options to pre-load the pkg |
94 | 54 | name, version number, maintainer name, maintainer email etc. |
95 | | - |
96 | 55 | make changelog |
97 | | - |
98 | | --------------------------------------------------------------------------------- |
99 | | - |
100 | | -Regenerate just the deb source pkg files (*.dsc, *.tar.gz) |
101 | | -This is usually done automatically. |
102 | | - |
103 | | - make deb-src |
104 | | - |
0 commit comments