Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
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
VERSION = "v0.0.1"
IM=cmungall/biomake
docker-build:
@docker build -t $(IM):$(VERSION) . \
&& docker tag $(IM):$(VERSION) $(IM):latest
docker-run:
docker run --rm -ti --name biomake $(IM)
docker-publish: docker-build
@docker push $(IM):$(VERSION) \
&& docker push $(IM):latest