Thus, if I edit e.g. the CFLAGS settings in configure.in:
- Makefile runs autoconf to update configure.
- Makefile runs config.status --recheck to update config.status.
- Makefile runs config.status to update Makefile.config.
(GNU Make implicitly tries to keep included makefiles up to date.)
- src/**/Makefile use the CFLAGS from the updated Makefile.config.
(Source files will not be automatically recompiled, however.
If that is ever implemented, Makefile.config should be given
a separate timestamp file like config.h has.)
- Fix the doc/ clean target which was called clean-local
- Consistently use $(RM)
- Introduce CLEAN variable to make it simpler to costumize local cleaning
All objects defining $(OBJS) will get them and *.a deleted during
make clean.
The all, clean and install rules now implicitly imply their -recursive
counterparts - those will just do nothing in case of $(SUBDIRS) not
defined, so that's ok.
The root makefile is converted as well as some leaf Makefiles. This
also brings in the required infrastructure and adjusts configure.in
appropriately.
I converted only makefiles containing no configurable stuff, since
that'll require more consideration yet.