From 5e680513e68a358b0eac1a5dac844fc793a6a7a9 Mon Sep 17 00:00:00 2001 From: Levente Polyak Date: Thu, 19 May 2022 01:21:04 +0200 Subject: make: automatically collect man pages via wildcard --- Makefile | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 6146c0d..6500da0 100644 --- a/Makefile +++ b/Makefile @@ -9,6 +9,7 @@ BINPROGS = $(addprefix $(BUILDDIR)/,$(patsubst src/%,bin/%,$(patsubst %.in,%,$(w MAKEPKG_CONFIGS=$(wildcard config/makepkg/*) PACMAN_CONFIGS=$(wildcard config/pacman/*) SETARCH_ALIASES = $(wildcard config/setarch-aliases.d/*) +MANS = $(addprefix $(BUILDDIR)/,$(patsubst %.asciidoc,%,$(filter-out doc/footer.asciidoc,$(wildcard doc/*.asciidoc)))) COMMITPKG_LINKS = \ extrapkg \ @@ -45,23 +46,6 @@ BASHCOMPLETION_LINKS = \ archco \ communityco -MANS = \ - archbuild.1 \ - arch-nspawn.1 \ - export-pkgbuild-keys.1 \ - makechrootpkg.1 \ - lddd.1 \ - checkpkg.1 \ - diffpkg.1 \ - offload-build.1 \ - sogrep.1 \ - makerepropkg.1 \ - mkarchroot.1 \ - find-libdeps.1 \ - find-libprovides.1 \ - devtools.7 -MANS := $(addprefix $(BUILDDIR)/doc/,$(MANS)) - all: binprogs completion man binprogs: $(BINPROGS) -- cgit v1.2.3-70-g09d2