OSDN Git Service

LDP: Fix perkamon/Makefile
authorAkihiro Motoki <amotoki@gmail.com>
Sat, 13 Mar 2021 22:39:04 +0000 (07:39 +0900)
committerAkihiro Motoki <amotoki@gmail.com>
Sat, 13 Mar 2021 22:39:04 +0000 (07:39 +0900)
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.

manual/LDP_man-pages/perkamon/Makefile

index f11faa1..2542825 100644 (file)
@@ -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