run `make' in `tests' directory to test installed SWI Prolog. These tests require prolog to be installed because it verifies packaging. Thus the tests cannot be run at build-time.
13 lines
197 B
Makefile
13 lines
197 B
Makefile
.PHONY: pi
|
|
|
|
all: calc.out
|
|
echo '3.141592653589793' | cmp - calc.out
|
|
|
|
calc.out: calc
|
|
./calc 'pi' | tee calc.out
|
|
|
|
calc: calc.c calc.pl
|
|
swipl-ld -o calc calc.c calc.pl
|
|
|
|
clean:
|
|
rm -f calc calc.out
|