Commit graph

20 commits

Author SHA1 Message Date
9ddbc547c2 gettext.mk: Re-add files necessary for building bootstrap

Re-add all files missing for building the bootstrap package.

Signed-off-by: Jan Lindemann <jan@janware.com>
2025-11-14 16:22:40 +01:00
bc883deed4 Everywhere: Remove everything non-essential for "make clean all"

This commit removes everything not strictly necessary for running "make clean all" inside jw-build.

packaging jw-devtest. This cuts the repo down from 24077 to 4725 lines of code.

The idea is to

1) Further remove bloat from the remaining bits

2) Re-add what's necessary to build and package other essential repos.

The decision should be based on whether or not jw-build can also be useful in a non-janware context.

Signed-off-by: Jan Lindemann <jan@janware.com>
2025-11-14 15:02:56 +01:00
3d4ecbc508 gettext.mk: Remove $(GETTEXT_PROJECT_POT): $(GETTEXT_INPUT_FILES) dependency

$(GETTEXT_PROJECT_POT) is always generated if $(GETTEXT_INPUT_FILES) are newer than it. Having this happen automatically is not useful, since it can break manually edited and version controlled $(GETTEXT_PROJECT_POT).

Signed-off-by: Jan Lindemann <jan@janware.com>
2025-06-04 02:23:24 +00:00
ccc8725dff gettext.mk: Use pattern rule %.po: %pot

Currently, there's a $(GETTEXT_PROJECT_PO): $(GETTEXT_POT) rule, but since updates to the workflow now considers, allows and mandates one or multiple *.pot files as the authoritative source for translations, make this a pattern rule rather than only valid for $(GETTEXT_POT).

Signed-off-by: Jan Lindemann <jan@janware.com>
2025-02-22 12:40:45 +00:00
e53032ab9c gettext.mk: Support GETTEXT_INPUT_EXTS

GETTEXT_INPUT_EXTS takes a whitespace separated list of extensions which are subsequently passed to find -name to locate source files which are meant to be run through xgettext.

The first argument to find, translateme, is not really meant to exist, it's just there to allow adding multiple extensions preceded by -o in a $(foreach) loop.

Signed-off-by: Jan Lindemann <jan@janware.com>
2025-02-22 08:41:13 +00:00
39a558d3a1 gettext.mk: Try to re-organize workflow

Try to make the workflow a little more versatile. As of this commit, .pot files are assumed to preexist, save $(GETTEXT_PROJECT_POT), which can be generated from source, and should be committed, too.

Signed-off-by: Jan Lindemann <jan@janware.com>
2025-02-17 17:13:09 +00:00
57e63b2582 gettext.mk: Create a LC_MESSAGES link to .

A directory with gettext.mk in it, provided it has a locale name, makes the parent directory to a working localedir, which can be used from within the janware source tree, so add it with the all target and remove it with clean.

Signed-off-by: Jan Lindemann <jan@janware.com>
2025-01-30 09:24:43 +00:00
b2d6e6f554 Everywhere: Rename MODDIR -> JWBDIR

Rename the omnipresent MODDIR variable to JWBDIR, since that's more to the point.

Signed-off-by: Jan Lindemann <jan@janware.com>
2019-06-29 21:34:18 +00:00
0eaef0c326 conf/jcs, make, tmpl/doxygen: Align equal signs in makefiles to column 30
Signed-off-by: Jan Lindemann <jan@janware.com>
2019-03-03 18:12:28 +00:00
4cb7ff2fdd gettext.mk: Fix typo in GETTEXT_PROJECT_PO
Signed-off-by: Jan Lindemann <jan@janware.com>
2018-12-11 14:02:18 +00:00
af2455cd52 gettext.mk: Add dev-utils.mk to gettext.mk
Signed-off-by: Jan Lindemann <jan@janware.com>
2018-11-28 21:08:19 +00:00
9d7875b5c8 gettext.mk: Add variable GETTEXT_EXTRA_KEYWORDS
Signed-off-by: Jan Lindemann <jan@janware.com>
2018-11-14 16:56:24 +00:00
185fe85ac0 gettext.mk: Add support for multiple .po and .pot files

Up to now, generating and installing gettext .mo files worked for exactly one .po file. Now all files in the directory are compiled by default.

Editing only targets $(PROJECT).po, though, so this works as before.

Signed-off-by: Jan Lindemann <jan@janware.com>
2018-11-13 13:51:28 +00:00
f70465cbd5 make: Replace pwd by $(PWD)
Signed-off-by: Jan Lindemann <jan@janware.com>
2017-12-18 13:45:55 +00:00
f5c43f706a make: Replace some executables by absolute paths to improve performance
Signed-off-by: Jan Lindemann <jan@janware.com>
2017-09-02 19:26:52 +00:00
8547912bc6 gettext.mk: Add mechanism for preprocessing source files
Signed-off-by: Jan Lindemann <jan@janware.com>
2016-10-05 21:46:46 +00:00
2e1246bc55 gettext.mk: Add --from-code=utf-8
Signed-off-by: Jan Lindemann <jan@janware.com>
2016-10-05 20:50:18 +00:00
f1c8461ad5 gettext.mk: Add support for $(TOPDIR)/src and ehtr()
Signed-off-by: Jan Lindemann <jan@janware.com>
2016-10-05 19:29:31 +00:00
6d7038ead6 gettext.mk: Support htr() function
Signed-off-by: Jan Lindemann <jan@janware.com>
2015-04-07 12:44:03 +00:00
5206555d96 make: Add support for gettext.mk
Signed-off-by: Jan Lindemann <jan@janware.com>
2015-04-06 16:45:41 +00:00