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:
parent
aa6d782629
commit
cfca1cfd8e
8 changed files with 112 additions and 8 deletions
2
genmk.rb
2
genmk.rb
|
@ -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}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue