Source-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: CVS commit: src/external/bsd/top/usr.bin/top
Christos Zoulas wrote:
> Module Name: src
> Committed By: christos
> Date: Wed Jul 16 01:51:56 UTC 2008
>
> Modified Files:
>
> src/external/bsd/top/usr.bin/top: Makefile
> Added Files:
>
> src/external/bsd/top/usr.bin/top: config.h.in
> Removed Files:
>
> src/external/bsd/top/usr.bin/top: config.h
>
> Log Message:
>
> need to generate config.h dynamically
This creates config.h before anything else happens, including making an
obj dir if requested(!). Something like:
+.if !make(obj) && !make(clean) && !make(cleandir)
.BEGIN: config.h
config.h: config.h.in
${TOOL_SED} -e s/@MACHINE@/${MACHINE}/ < $? > $@
+.endif
maybe? This is the same construct used in a lot of bootblocks
Makefiles. Maybe also common enough that we should abstract out
into <bsd.*.mk> somehow?
Cheers,
Simon.
Home |
Main Index |
Thread Index |
Old Index