OSDN Git Service

meson 0.60.2: Cancel reservation. Commit the sources so far.
[linuxjm/jm.git] / manual / iptables / Makefile
1 THRESH = 80
2 EXTFLAGS =
3 PO4AFLAGS += -k $(THRESH) $(EXTFLAGS)
4
5 MASTER_CMD = $(wildcard original/man[^23]/*.[1-8])
6 MASTER_LIB = $(wildcard original/man[23]/*.[1-8])
7 MASTER_ROFFS = $(MASTER_CMD) $(MASTER_LIB)
8 TRANS_ROFFS = $(patsubst original/%,draft/%,$(MASTER_ROFFS))
9 POFILES = $(sort $(wildcard po4a/*/*.ja.po))
10 POTFILES = $(wildcard po4a/*/*.pot)
11 MSGMERGE_OPTS = --no-wrap --no-location
12
13 WORK_DIR = .
14
15 all:    translate
16 cmd:    translate-cmd
17 lib:    translate-lib
18
19 translate:      translate-cmd translate-lib
20 translate-cmd:  $(patsubst %,_translate-%,$(notdir $(MASTER_CMD)))
21 translate-lib:  $(patsubst %,_translate-%,$(notdir $(MASTER_LIB)))
22
23 _translate-%:
24         @PO4AFLAGS="$(PO4AFLAGS)" ./tools/translate.sh $*
25
26 updatepo:       $(patsubst %,_updatepo-%,$(notdir $(MASTER_ROFFS)))
27
28 _updatepo-%:
29         @MSGMERGE_OPTS="$(MSGMERGE_OPTS)" ./tools/updatepo.sh $*
30
31 stat:
32         @for po in $(POFILES); do \
33           echo -n $$(basename $$po)": "; \
34           msgfmt --statistics -o /dev/null $$po; \
35         done
36
37 pot:    $(patsubst %,_pot-%,$(notdir $(MASTER_ROFFS)))
38
39 _pot-%:
40         @./tools/generatepot.sh $*
41
42 pot-clean:
43         $(RM) -v $(POTFILES)