Blame view

Makefile 680 Bytes
fb3afe45   Salvador Abreu   doing 64bits now...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
IMAGES=$(shell ls -1 */Dockerfile | sed -e s:/Dockerfile::)
COPY=sim2c_1.0-3_all.deb

DATA=data
WORKDIR=/root
HUBU=rodalvas

all: cplint

.PHONY: prolog logtalk cplint clean sim2c

prolog:
	docker build $@ --tag $@:latest
	docker tag $@:latest $(HUBU)/$@:latest

sim2c: 
	cp $(COPY) $@/sim2c.deb
	docker build $@ --tag $@:latest
	docker tag $@:latest $(HUBU)/$@:latest


run-%::
	docker run -ti \
		-v $(PWD)/$(DATA):$(WORKDIR)/$(DATA) \
		$(subst run-,,$@):latest

logtalk.deb::
	[ -e $(LGTDEB) ] || wget -q https://logtalk.org/files/$(LGTDEB)
	ln -sf $(LGTDEB) logtalk.deb

clean:
	rm -f $(DATA)/*
	docker container prune -f
	docker image prune -f
	docker image rm -f $(IMAGES)