Makefile 856 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11
IMAGE_NAME=benchmarksgame-cvs-importer

info:
	$(info Targets)
	$(info -------------------------------------------------------------)
	$(info update            | update this repository with data from cvs)
	$(info -Other Targets ----------------------------------------------)
	$(info docker-image      | build the image used to run the csv import)
	$(info docker-run        | run the image interactively)
	$(info docker-cvs-import | run the import and update this repository)

12
.image.ok: etc/docker/Dockerfile
13 14 15 16 17 18 19 20
	cd etc/docker && docker build -t $(IMAGE_NAME) .
	touch $@

docker-image: .image.ok
docker-run: docker-image
	docker run -it $(IMAGE_NAME)

docker-cvs-import: docker-image
21
	docker run -e TRAVIS -v $$PWD:/repo -v $$PWD/.docker-home:/root -w /repo $(IMAGE_NAME) ./update-git-from-cvs-in-docker.sh
22
	./push-to-github.sh
23 24 25 26


update: docker-cvs-import