From: Akihiro Motoki Date: Sat, 13 Mar 2021 22:39:04 +0000 (+0900) Subject: LDP: Fix perkamon/Makefile X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=5e8fa0604363ba582a64a54bdc577d60ae287888;p=linuxjm%2Fjm.git LDP: Fix perkamon/Makefile After PO4a_SUBDIRS started to be initialized using "wildcard" marco, po4a/add_ja was included unintentionally after "make jm-setup" is done. To avoid this, this commit changes the wildcard pattern to check po4a config files. Note that paths returned by "notdir" macro end with a slash so "patsubst" macro is required to drop the trailing slash. --- diff --git a/manual/LDP_man-pages/perkamon/Makefile b/manual/LDP_man-pages/perkamon/Makefile index f11faa15..25428258 100644 --- a/manual/LDP_man-pages/perkamon/Makefile +++ b/manual/LDP_man-pages/perkamon/Makefile @@ -9,7 +9,7 @@ PO4AFLAGS ?= -k 100 LANGS ?= WORK_DIR ?= . UTF8_LOCALE ?= en_US.UTF-8 -PO4A_SUBDIRS ?= $(EXTRA_PO4A_SUBDIRS) $(sort $(notdir $(wildcard po4a/*))) +PO4A_SUBDIRS ?= $(EXTRA_PO4A_SUBDIRS) $(sort $(patsubst %.cfg, %, $(notdir $(wildcard po4a/*/*.cfg)))) all: translate