1*0a6a1f1dSLionel Sambuc# $Id: posix.mk,v 1.1 2014/08/21 13:44:51 apb Exp $ 2*0a6a1f1dSLionel Sambuc 3*0a6a1f1dSLionel Sambucall: x plus subs err 4*0a6a1f1dSLionel Sambuc 5*0a6a1f1dSLionel Sambucx: 6*0a6a1f1dSLionel Sambuc @echo "Posix says we should execute the command as if run by system(3)" 7*0a6a1f1dSLionel Sambuc @echo "Expect 'Hello,' and 'World!'" 8*0a6a1f1dSLionel Sambuc @echo Hello,; false; echo "World!" 9*0a6a1f1dSLionel Sambuc 10*0a6a1f1dSLionel Sambucplus: 11*0a6a1f1dSLionel Sambuc @echo a command 12*0a6a1f1dSLionel Sambuc +@echo "a command prefixed by '+' executes even with -n" 13*0a6a1f1dSLionel Sambuc @echo another command 14*0a6a1f1dSLionel Sambuc 15*0a6a1f1dSLionel Sambucsubs: 16*0a6a1f1dSLionel Sambuc @echo make -n 17*0a6a1f1dSLionel Sambuc @${.MAKE} -f ${MAKEFILE} -n plus 18*0a6a1f1dSLionel Sambuc @echo make -n -j1 19*0a6a1f1dSLionel Sambuc @${.MAKE} -f ${MAKEFILE} -n -j1 plus 20*0a6a1f1dSLionel Sambuc 21*0a6a1f1dSLionel Sambucerr: 22*0a6a1f1dSLionel Sambuc @(echo Now we expect an error...; exit 1) 23*0a6a1f1dSLionel Sambuc @echo "Oops! you shouldn't see this!" 24*0a6a1f1dSLionel Sambuc 25