aboutsummaryrefslogtreecommitdiffstats
path: root/mk/texinfo.mk
diff options
context:
space:
mode:
authorMattias Andrée <maandree@member.fsf.org>2015-12-08 20:46:53 +0100
committerMattias Andrée <maandree@member.fsf.org>2015-12-08 20:46:53 +0100
commitd6dd4da48e4c15623582fe0b561d8095498df4db (patch)
tree4708cfc32af2914cd49ecf36ac962b07ea46b694 /mk/texinfo.mk
parenta magical makefile, using a collection of submakefiles that are completely reusable without modifications (diff)
downloadscrotty-d6dd4da48e4c15623582fe0b561d8095498df4db.tar.gz
scrotty-d6dd4da48e4c15623582fe0b561d8095498df4db.tar.bz2
scrotty-d6dd4da48e4c15623582fe0b561d8095498df4db.tar.xz
m
Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
Diffstat (limited to 'mk/texinfo.mk')
-rw-r--r--mk/texinfo.mk6
1 files changed, 4 insertions, 2 deletions
diff --git a/mk/texinfo.mk b/mk/texinfo.mk
index 163b6e6..db7fa07 100644
--- a/mk/texinfo.mk
+++ b/mk/texinfo.mk
@@ -65,11 +65,13 @@ __TEXI_SRC =
ifdef _TEXINFO_DIRLEVELS
ifeq ($(_TEXINFO_DIRLEVELS),1)
__TEXI_SRC += doc/info/*.texinfo
-else
+endif
+ifneq ($(_TEXINFO_DIRLEVELS),1)
ifeq ($(_TEXINFO_DIRLEVELS),2)
__TEXI_SRC += doc/info/*.texinfo
__TEXI_SRC += doc/info/*/*.texinfo
-else
+endif
+ifneq ($(_TEXINFO_DIRLEVELS),2)
__TEXI_SRC += $(foreach W,$(shell $(SEQ) $(_TEXINFO_DIRLEVELS) | while read n; do $(ECHO) $$($(SEQ) $$n)" " | $(SED) 's/[^ ]* /\/\*/g'; done | $(XARGS) $(ECHO)),doc/info$(W).texinfo)
endif
endif