Signed-off-by: Alexander Miller <alex.miller@xxxxxx> --- Makefile | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 8f2e25c..cdedb4a 100644 --- a/Makefile +++ b/Makefile @@ -52,13 +52,16 @@ uninstall remove: (cd $(MANDIR) && xargs -d \\n rm -f) gz: - for i in man?; do $(GZIP) "$$i"/*; done + find man? -mindepth 1 -maxdepth 1 -name '*.[gx]z' -o -name '*.bz2' \ + -o -exec $(GZIP) '{}' + bz2: - for i in man?; do $(BZIP2) "$$i"/*; done + find man? -mindepth 1 -maxdepth 1 -name '*.[gx]z' -o -name '*.bz2' \ + -o -exec $(BZIP2) '{}' + xz: - for i in man?; do $(LZMA) "$$i"/*; done + find man? -mindepth 1 -maxdepth 1 -name '*.[gx]z' -o -name '*.bz2' \ + -o -exec $(LZMA) '{}' + # Use with # make HTDIR=/some/dir HTOPTS=whatever html -- 2.7.3 -- To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html