From: Michael Tremer Date: Sun, 2 Jan 2022 14:19:21 +0000 (+0000) Subject: Makefile: Split man pages into multiple lists X-Git-Tag: 0.9.10~5 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7b9b017f97229893af570e320e3e651290e83db2;p=location%2Flibloc.git Makefile: Split man pages into multiple lists This isn't pretty but makes substitution rules easier and working correctly. Signed-off-by: Michael Tremer --- diff --git a/Makefile.am b/Makefile.am index f9aadf5..fb98f33 100644 --- a/Makefile.am +++ b/Makefile.am @@ -420,17 +420,23 @@ src_test_signature_LDADD = \ # ------------------------------------------------------------------------------ MANPAGES = \ + $(MANPAGES_3) \ + $(MANPAGES_8) + +MANPAGES_3 = \ man/libloc.3 \ - man/location.8 \ man/loc_database_new.3 \ man/loc_get_log_priority.3 \ man/loc_new.3 \ man/loc_set_log_fn.3 \ man/loc_set_log_priority.3 +MANPAGES_8 = \ + man/location.8 + MANPAGES_TXT = $(MANPAGES_TXT_3) $(MANPAGES_TXT_8) -MANPAGES_TXT_3 = $(patsubst %.3,%.txt,$(MANPAGES)) -MANPAGES_TXT_8 = $(patsubst %.8,%.txt,$(MANPAGES)) +MANPAGES_TXT_3 = $(patsubst %.3,%.txt,$(MANPAGES_3)) +MANPAGES_TXT_8 = $(patsubst %.8,%.txt,$(MANPAGES_8)) MANPAGES_HTML = $(patsubst %.txt,%.html,$(MANPAGES_TXT)) MANPAGES_XML = $(patsubst %.txt,%.xml,$(MANPAGES_TXT))