On Mon, Apr 27, 2009 at 03:09:47PM +0800, Bean wrote: > 2, Group related items together > > For example, for the fat module, we could write it like this: > > # For fat.mod. > fat_mod_SOURCES = fs/fat.c > fat_mod_CFLAGS = $(COMMON_CFLAGS) > fat_mod_LDFLAGS = $(COMMON_LDFLAGS) > pkglib_MODULES += fat.mod > grub_probe_SOURCES += fs/fat.c > grub_fstest_SOURCES += fs/fat.c > grub_emu_SOURCES += fs/fat.c
Or even: FILESYSTEMS = .... fs/fat.c .... grub_emu_SOURCES = ... $(FILESYSTEMS) ... but be careful when doing untested stuff with make variables, they're not parsed only by make, and the ruby scripts are quite picky in some things. -- Robert Millan The DRM opt-in fallacy: "Your data belongs to us. We will decide when (and how) you may access your data; but nobody's threatening your freedom: we still allow you to remove your data and not access it at all." _______________________________________________ Grub-devel mailing list Grub-devel@gnu.org http://lists.gnu.org/mailman/listinfo/grub-devel