From: Akihiro MOTOKI Date: Mon, 29 Apr 2013 06:09:36 +0000 (+0900) Subject: iptables: Update Makefile X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=95be995afe8fb38e93209caa4d59cb58f81ef0a1;p=linuxjm%2Fiptables.git iptables: Update Makefile --- diff --git a/Makefile b/Makefile index 01d2694..5b478cf 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,9 @@ THRESH = 100 EXTFLAGS = PO4AFLAGS += -k $(THRESH) $(EXTFLAGS) -MASTER_ROFFS = $(wildcard original/*/*.[1-8]) +MASTER_CMD = $(wildcard original/man[^23]/*.[1-8]) +MASTER_LIB = $(wildcard original/man[23]/*.[1-8]) +MASTER_ROFFS = $(MASTER_CMD) $(MASTER_LIB) TRANS_ROFFS = $(patsubst original/%,draft/%,$(MASTER_ROFFS)) POFILES = $(wildcard po4a/*/*.ja.po) POTFILES = $(wildcard po4a/*/*.pot) @@ -12,10 +14,13 @@ WORK_DIR = . all: translate -translate: $(patsubst %,translate-%,$(notdir $(MASTER_ROFFS))) +translate: translate-cmd translate-lib +translate-cmd: $(patsubst %,_translate-%,$(notdir $(MASTER_CMD))) +translate-lib: $(patsubst %,_translate-%,$(notdir $(MASTER_LIB))) -translate-%: +_translate-%: @set -e; for target in $*; do \ + echo $$target; \ p=$$(echo $* | sed -e 's|.*\.\([1-8]\)|man\1/\0|'); \ pofile=po4a/$$p.ja.po; \ potfile=po4a/$$p.pot; \ @@ -31,9 +36,9 @@ translate-%: fi; \ done -updatepo: $(patsubst %,updatepo-%,$(notdir $(MASTER_ROFFS))) +updatepo: $(patsubst %,_updatepo-%,$(notdir $(MASTER_ROFFS))) -updatepo-%: +_updatepo-%: @set -e; for target in $*; do \ p=$$(echo $* | sed -e 's|.*\.\([1-8]\)|man\1/\0|'); \ pofile=po4a/$$p.ja.po; \ @@ -61,9 +66,9 @@ stat: msgfmt --statistics -o /dev/null $$po; \ done -pot: $(patsubst %,pot-%,$(notdir $(MASTER_ROFFS))) +pot: $(patsubst %,_pot-%,$(notdir $(MASTER_ROFFS))) -pot-%: +_pot-%: @set -e; for target in $*; do \ p=$$(echo $* | sed -e 's|.*\.\([1-8]\)|man\1/\0|'); \ pofile=po4a/$$p.ja.po; \