[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Getting long SOURCES lines with subdirs shorter
From: |
Jan Engelhardt |
Subject: |
Getting long SOURCES lines with subdirs shorter |
Date: |
Mon, 17 Jul 2023 00:55:59 +0200 (CEST) |
User-agent: |
Alpine 2.25 (LSU 592 2021-09-18) |
Given
a_SOURCES = aprog/main.c aprog/foo.c aprog/bar.c aprog/baz.c ...
The more source files there are to be listed, the longer that line gets,
the bigger the Makefile.am fragment becomes, etc. I am thinking about
how to cut that repetition down. Current automake likely won't have
anything in store already, so I'm thinking of editing automake and
targeting a future automake release.
The syntax would need to be understood by automake and expanded at the
right time; Makefile.in should have the expanded list already. How
about recognizing the gmake function syntax?
a_SOURCES = $(addprefix aprog/,main.c foo.c bar.c baz.c)
- Getting long SOURCES lines with subdirs shorter,
Jan Engelhardt <=