chiark / gitweb /
Interface: Rename Perdir to Suffix; provide Prefix
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 28 Dec 2019 22:45:50 +0000 (22:45 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 30 Dec 2019 11:35:15 +0000 (11:35 +0000)
commit033421585dfa781211b558d7acc310b8540ba60e
treef83c1450a53182bf0f07c299599109bea002bd30
parent056283726668515d212889fed6fadb833c9c34c2
Interface: Rename Perdir to Suffix; provide Prefix

We want to be able to specify something that appears at the top of
every per-directory segment, principally to provide
for-every-directory variable settings.

A more sophisticated scheme akin to m4 diversions would be possible in
principle, but it would make organising the output files (which must
be processed by autoconf) really awkward - let alone the depenency
management for regenerating the makefiles.

So instead, simply provide a Prefix too.  Additionally, soon we are
going to introduce a Final.sd.mk which is processed right at the end.

I think this new scheme will be sufficient in principle to do anything
that might be needed.  Sadly it will continue to require that
&:include's are done in the right order.

"Suffix" and "Subdir" tab-complete really badly.  In a forthcoming
commit we will rename Subdir.sd.mk to Dir.sd.mk.

Incompatible change.  We must update the tests right away.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
README
cdeps.sd.mk
clean.sd.mk
example/Suffix.sd.mk [moved from example/Perdir.sd.mk with 100% similarity]
generate
tests/filter/Perdir.sd.mk [deleted file]
tests/filter/Prefix.sd.mk [new file with mode: 0644]
tests/filter/Subdir.mk.expected
tests/filter/Suffix.sd.mk [new file with mode: 0644]
tests/filter/main.mk.expected
tests/filter/sub/dir/Subdir.mk.expected