Skip to content
Permalink
master
Go to file
 
 
Cannot retrieve contributors at this time
39 lines (29 sloc) 1009 Bytes
MAKEFILE_PATH := $(abspath $(lastword $(MAKEFILE_LIST)))
MAKEFILE_DIR := $(dir $(MAKEFILE_PATH))
SWIPL = $(MAKEFILE_DIR)bin/swipl_wrap
# override these GNU-recommended variables for a custom install
prefix = /usr/local
datadir = $(prefix)/share
exec_prefix = $(prefix)
bindir = $(exec_prefix)/bin
.PHONY: all clean test symlink install uninstall
all: clean test
test: stage-test
$(SWIPL) -q -t test -l prolog/test/test
test-%: stage-test
$(SWIPL) -q -t "test($*)" -l prolog/test/test
stage-test:
(test -e t/target && rm -rf t/target) || true
cp -r t/init t/target
clean:
git clean -fd || true
symlink:
ln -sf $(MAKEFILE_DIR)bin/biomake $(bindir)/biomake
install:
mkdir -p $(datadir)
(test -e $(datadir)/biomake && rm -rf $(datadir)/biomake) || true
cp -r $(MAKEFILE_DIR) $(datadir)/biomake
ln -sf $(datadir)/biomake/bin/biomake $(bindir)/biomake
uninstall:
(test -e $(datadir)/biomake && rm -rf $(datadir)/biomake) || true
(test -e $(bindir)/biomake && rm -rf $(bindir)/biomake) || true
You can’t perform that action at this time.