0068-macro.sh (209B)
1 #!/bin/sh 2 3 trap 'rm -f $tmp1' EXIT 4 trap 'exit 1' HUP INT TERM 5 6 tmp1=tmp1.$$ 7 8 $EXEC scc make -f- <<'EOF' > $tmp1 2>&1 9 SRC = file1.c file2.c 10 11 all: 12 @echo $(SRC:.c=.o) 13 EOF 14 15 diff $tmp1 - <<EOF 16 file1.o file2.o 17 EOF