makefile: rather than a dependency for each source file, generate loglevels.h by recursion

This little hack runs make recursively to generate include/loglevels.h
before running any other target but skip an explicit dependency on
loglevels.h in each rule. Therefore, you do not need to rebuild
every source file when compiling.
This commit is contained in:
Michael Stapelberg
2009-12-22 12:14:09 +01:00
parent 9df64a8d0a
commit 75ac464c0d
2 changed files with 17 additions and 10 deletions

View File

@ -74,5 +74,5 @@ endif
.SILENT:
# Always remake the following targets
.PHONY: install clean dist distclean rm_loglevels
.PHONY: install clean dist distclean