# # Test file to make sure all the variable modifiers work ok # Q = ../../e.c a.out homer #include "../lib/mk/shx.mk" PWD != pwd .IGNORE: # make sure sh doesn't abort on failed ifs a : : Q = "$(Q)" if test "../.. . ." != "$(Q:H)"; then @echo Check VarHead, VarModify and VarParse fi if test "e.c a.out homer" != "$(Q:T)"; then @echo Check VarTail, VarModify and VarParse fi if test "../../e a homer" != "$(Q:R)"; then @echo Check VarRoot, VarModify and VarParse fi if test "c out" != "$(Q:E)"; then @echo Check VarSuffix, VarModify and VarParse fi : tail of current working directory = "$(PWD:T)" if test "`pwd`"x != "$(PWD)"x; then @echo Check Parse_DoVar fi if test "../../e.c a.out fishy \& homer" != "$(Q:S/a.out/& fishy \\\&/)"; then @echo Check VarSubstitute, VarModify and VarParse fi exit 0