forked from CellProfiler/docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
45 lines (32 loc) · 1.38 KB
/
Makefile
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
36
37
38
39
40
41
42
43
44
45
SVN = http://cellprofiler.org/svnmirror/ExampleImages/ExampleHumanImages
.DEFAULT_GOAL: build
build:
docker build -t cellprofiler .
.PHONY: input
input:
mkdir -p $@
output:
mkdir -m 777 -p $@
ExampleHuman.cppipe:
curl -O ${SVN}/ExampleHuman.cppipe
input/ExampleHuman.cppipe: ExampleHuman.cppipe
mv $< $@
AS_09125_050116030001_D03f00d0.tif:
curl -O ${SVN}/$@
input/AS_09125_050116030001_D03f00d0.tif: AS_09125_050116030001_D03f00d0.tif
mv $< $@
AS_09125_050116030001_D03f00d1.tif: AS_09125_050116030001_D03f00d1.tif
curl -O ${SVN}/$@
input/AS_09125_050116030001_D03f00d1.tif: AS_09125_050116030001_D03f00d1.tif
mv $< $@
AS_09125_050116030001_D03f00d2.tif:
curl -O ${SVN}/$@
input/AS_09125_050116030001_D03f00d2.tif: AS_09125_050116030001_D03f00d2.tif
mv $< $@
input/filelist.txt: input/AS_09125_050116030001_D03f00d0.tif input/AS_09125_050116030001_D03f00d1.tif input/AS_09125_050116030001_D03f00d2.tif
echo 'file:///input/AS_09125_050116030001_D03f00d0.tif' >> $@
echo 'file:///input/AS_09125_050116030001_D03f00d1.tif' >> $@
echo 'file:///input/AS_09125_050116030001_D03f00d2.tif' >> $@
.PHONY: test
test: input output input/filelist.txt input/ExampleHuman.cppipe
docker run --volume=`pwd`/input:/input --volume=`pwd`/output:/output cellprofiler --image-directory=/input --output-directory=/output --pipeline=/input/ExampleHuman.cppipe --file-list=/input/filelist.txt