2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>

* conf/common.rmk (grub_modules_init.lst): Depends on
        $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
        that the target does not exist before producing.
        (grub_modules_init.h): Remove the target before generating.
        (grub_emu_init.c): Likewise.

        * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
This commit is contained in:
okuji 2006-06-02 19:23:08 +00:00
parent aa6d782629
commit cfca1cfd8e
8 changed files with 112 additions and 8 deletions

View file

@ -96,6 +96,7 @@ class PModule
def rule(sources)
prefix = @name.to_var
sources_str = sources.join(' ')
objs = sources.collect do |src|
raise "unknown source file `#{src}'" if /\.[cS]$/ !~ src
prefix + '-' + src.to_obj
@ -115,6 +116,7 @@ class PModule
ifneq ($(#{prefix}_EXPORTS),no)
CLEANFILES += #{defsym}
DEFSYMFILES += #{defsym}
MODSRCFILES += #{sources_str}
endif
MOSTLYCLEANFILES += #{deps_str}
UNDSYMFILES += #{undsym}