Revisión | 95be995afe8fb38e93209caa4d59cb58f81ef0a1 (tree) |
---|---|
Tiempo | 2013-04-29 15:09:36 |
Autor | Akihiro MOTOKI <motoki@da.j...> |
Commiter | Akihiro MOTOKI |
iptables: Update Makefile
@@ -2,7 +2,9 @@ THRESH = 100 | ||
2 | 2 | EXTFLAGS = |
3 | 3 | PO4AFLAGS += -k $(THRESH) $(EXTFLAGS) |
4 | 4 | |
5 | -MASTER_ROFFS = $(wildcard original/*/*.[1-8]) | |
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) | |
6 | 8 | TRANS_ROFFS = $(patsubst original/%,draft/%,$(MASTER_ROFFS)) |
7 | 9 | POFILES = $(wildcard po4a/*/*.ja.po) |
8 | 10 | POTFILES = $(wildcard po4a/*/*.pot) |
@@ -12,10 +14,13 @@ WORK_DIR = . | ||
12 | 14 | |
13 | 15 | all: translate |
14 | 16 | |
15 | -translate: $(patsubst %,translate-%,$(notdir $(MASTER_ROFFS))) | |
17 | +translate: translate-cmd translate-lib | |
18 | +translate-cmd: $(patsubst %,_translate-%,$(notdir $(MASTER_CMD))) | |
19 | +translate-lib: $(patsubst %,_translate-%,$(notdir $(MASTER_LIB))) | |
16 | 20 | |
17 | -translate-%: | |
21 | +_translate-%: | |
18 | 22 | @set -e; for target in $*; do \ |
23 | + echo $$target; \ | |
19 | 24 | p=$$(echo $* | sed -e 's|.*\.\([1-8]\)|man\1/\0|'); \ |
20 | 25 | pofile=po4a/$$p.ja.po; \ |
21 | 26 | potfile=po4a/$$p.pot; \ |
@@ -31,9 +36,9 @@ translate-%: | ||
31 | 36 | fi; \ |
32 | 37 | done |
33 | 38 | |
34 | -updatepo: $(patsubst %,updatepo-%,$(notdir $(MASTER_ROFFS))) | |
39 | +updatepo: $(patsubst %,_updatepo-%,$(notdir $(MASTER_ROFFS))) | |
35 | 40 | |
36 | -updatepo-%: | |
41 | +_updatepo-%: | |
37 | 42 | @set -e; for target in $*; do \ |
38 | 43 | p=$$(echo $* | sed -e 's|.*\.\([1-8]\)|man\1/\0|'); \ |
39 | 44 | pofile=po4a/$$p.ja.po; \ |
@@ -61,9 +66,9 @@ stat: | ||
61 | 66 | msgfmt --statistics -o /dev/null $$po; \ |
62 | 67 | done |
63 | 68 | |
64 | -pot: $(patsubst %,pot-%,$(notdir $(MASTER_ROFFS))) | |
69 | +pot: $(patsubst %,_pot-%,$(notdir $(MASTER_ROFFS))) | |
65 | 70 | |
66 | -pot-%: | |
71 | +_pot-%: | |
67 | 72 | @set -e; for target in $*; do \ |
68 | 73 | p=$$(echo $* | sed -e 's|.*\.\([1-8]\)|man\1/\0|'); \ |
69 | 74 | pofile=po4a/$$p.ja.po; \ |