[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: idea: adjust conf file layout
From: |
Robert Millan |
Subject: |
Re: idea: adjust conf file layout |
Date: |
Sun, 3 May 2009 18:31:21 +0200 |
User-agent: |
Mutt/1.5.18 (2008-05-17) |
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."
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: idea: adjust conf file layout,
Robert Millan <=