# This file is part of melmac. See file COPYING for copyright information. # Author: Gergo Barany # If necessary, change this variable to refer to the binary that executes # SWI-Prolog on your system. Other names of SWI-Prolog might be swipl, # swiprolog, or simply pl. # PL = xpce PL = pl all: melmac melmac_driver melmac: src/*.pl $(MAKE) PL=$(PL) -C src cp src/melmac . melmac_driver: src/melmac_driver if [ ! -e melmac_driver -o src/melmac_driver -nt melmac_driver ]; then \ cp src/melmac_driver . ; \ chmod u+x melmac_driver ; \ fi .PHONY: check check: melmac ./runtests .PHONY: clean clean: $(MAKE) clean -C src rm -f melmac melmac_driver rm -rf test_output