Legal: Add NO WARRANTY everywhere Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Big incompatible change: Rename `Subdir' to `Dir' We want completion to be easy, and we have Suffix now. `Dir' is as good as `Subdir' I think (and a bit shorter). Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Interface: Read Final.sd.mk Tests will come in a moment, although we already see the new output file mentioned in main.mk. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
regen.mk.in: Clarify documentation about realclean It's not sensible to `make [the provided] realclean:: into a recursive target' in that sense since the one we provide is effective, and present, only in the toplevel. What we mean is that you can make your own realclean target and regen.mk's will fit in nicely. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
regen.mk.in: Document CONFIG_STATUS_OUTPUTS Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
tests/example: Include non-.sd.mk files in SUBDIRMK_MAKEFILES subdirmk.ac provides @_SUBDIRMK_MAKEFILES@ which is a list of the *.mk makefiles (corresponding to *.mk.in makefiles) passed to SUBDIRMK_MAKEFILES. These need to be included in the identically-named make variable for regen.mk to rerun config.status when the .in files are edited. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
regen.mk.in: Debugging, controlled by SUBDIRMK_REGEN_NDEBUG And enable this in test/example/check. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
docs: Minor fixes to regen.mk.in comment Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
subdirmk: Fix bug in regen.mk.in Apparently, if you just write `;', make knows that the command can't have done anything. It therefore concludes tha the target file cannot have been updated and doesn't bother rereading it. The result is that you end up using last run's makefiles. Writing @: fixes this. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
subdirmk: Rename MAKEFILES variable This is very magic to make and the behaviour is very undesirable. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
subdirmk: Honour CONFIG_STATUS_OUTPUTS Principally to support autoheader. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Transpose directories Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>