pl/tests/c_binding/Makefile
Petr Písař 2d3446c58e Introduce run-time tests
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.
2012-03-07 14:10:12 +01:00

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