Declare subjects instead of picking them up automatically
Since subjects were added in Empire 2, we've always picked them up from .SA requests. If you mistype a subject there, you get a "is a NEW subject" warning, and incorrect subject pages. When building a pristine tree, you get bogus "is a NEW subject" warnings for all subjects. If you somehow delete the generated subjects.mk, but not the generated subject files, the build breaks. Declare subjects in Make variable subjects. Drop generated makefile subject.mk. Treat unknown topics in .SA arguments as errors. This replaces the "$subj is a NEW subject" warning. Treat subjects without member pages as errors. This replaces the "The subject $subj has been removed" warning. Safer and simpler.
This commit is contained in:
parent
cbed134d81
commit
890e88d149
5 changed files with 38 additions and 72 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -48,7 +48,6 @@
|
|||
/src/lib/global/path.c
|
||||
/autom4te.cache
|
||||
/src/client/autom4te.cache
|
||||
/subjects.mk
|
||||
# $(src_distgen)
|
||||
/aclocal.m4
|
||||
/config.h.in
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue