]> git.ipfire.org Git - location/libloc.git/commitdiff
Makefile: Split man pages into multiple lists
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 2 Jan 2022 14:19:21 +0000 (14:19 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 2 Jan 2022 14:29:31 +0000 (14:29 +0000)
This isn't pretty but makes substitution rules easier and working
correctly.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Makefile.am

index f9aadf5ae844790cc347275b8158ffdde59e8d78..fb98f337c96f8cd727ef33fe4e7c8c75509c953f 100644 (file)
@@ -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))