[32eb06]: / Tests / makefile  Maximize  Restore  History

Download this file

25 lines (16 with data), 516 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
testFiles=three.sis 8queens.sis bubble.sis quicksort.sis
localFiles=${testFiles:.sis=.exe} ${testFiles:.sis=.out} ${testFiles:.sis=.dif}
.PRECIOUS: ${localFiles}
include ../Include/makefile.inc
SISALC=${bindir}/sisalc
%.exe: %.sis
$(SISALC) -o $@ -w $<
%.out: %.exe
$(RM) $@
$< < ${<:.exe=.in} 2>&1 | tail -n +2 > $@
%.dif: %.out
$(DIFF) $< ${<:.out=.ans}
clean:
$(RM) ${localFiles}
answers:
for root in ${testFiles:.sis=.}; do $(RM) $$root'ans'; $(MAKE) $$root'out'; mv $$root'out' $$root'ans'; done