ed78fca6b3
- unit-tests/modts now works on MirBSD - meta mode - ApplyModifiers: when we parse a variable which is not the entire modifier string, or not followed by ':', do not consider it as containing modifiers. - when long modifiers fail to match, check sysV style. - :hash - cheap 32bit hash of value - :localtime, :gmtime - use value as format string for strftime. - fix for use after free() in CondDoExists(). - boot-strap (TOOL_DIFF): aparently at least on linux distro formats the output of 'type' differently - so eat any "()" - correct sysV substitution handling of empty lhs and variable - correct exists() check for dir with trailing / - correct handling of modifiers for non-existant variables during evaluation of conditionals. - fix for incorrect .PARSEDIR when .OBJDIR is re-computed after makefiles have been read. - fix example of :? modifier in man page. - sigcompat.c: convert to ansi so we can use higher warning levels. - parse.c: SunOS 5.8 at least does not have MAP_FILE - use mmap(2) if available, for reading makefiles - to ensure unit-tests results match, need to control LC_ALL as well as LANG. - if stale dependency is an IMPSRC, search via .PATH - machine.sh: like os.sh, allow for uname -p producing useless drivel - boot-strap: document configure knobs for meta and filemon.
26 lines
419 B
Text
26 lines
419 B
Text
# $Id: sysv,v 1.1.1.1 2011/06/18 22:18:21 bsiegert Exp $
|
|
|
|
FOO ?=
|
|
FOOBAR = $(FOO:=bar)
|
|
|
|
_this := ${.PARSEDIR}/${.PARSEFILE}
|
|
|
|
B = /b
|
|
S = /
|
|
FUN = ${B}${S}fun
|
|
SUN = the Sun
|
|
|
|
# we expect nothing when FOO is empty
|
|
all: foo fun
|
|
|
|
foo:
|
|
@echo FOOBAR = $(FOOBAR)
|
|
.if empty(FOO)
|
|
@FOO="foo fu" ${.MAKE} -f ${_this} foo
|
|
.endif
|
|
|
|
fun:
|
|
@echo ${FUN:T}
|
|
@echo ${FUN:${B}${S}fun=fun}
|
|
@echo ${FUN:${B}${S}%=%}
|
|
@echo ${In:L:%=% ${SUN}}
|