OSDN Git Service

b2aece7f543e15997efac305d5c35c37964c8ef4
[eos/tutorial.git] / TIPS / Gnuplot / Makefile / Makefile
1 #
2 #       This is Main Makefile for Gnuplot.
3 #
4
5 #### Root Makefile ####
6 MAKE_ROOT=Gnuplot
7
8 #### Input extention ####
9 INI=mrc
10 IN_GNU=txt
11 GNU_X_SIZE=480
12 GNU_Y_SIZE=480
13 GNU_Z_SIZE=480
14
15 #### Suffixes rule ####
16 # Defined at Sub
17
18 #### INCLUDE ####
19 -include ${EOS_HOME}/tutorial/TIPS/Help/Makefile/Makefile-lib
20 -include Makefile-lib
21
22 #### Definition ####
23 # Path of Input File
24 # Basically, use a linked data from /SampleData.
25 INPUT_PATH=${EOS_HOME}/tutorial/SampleData/XXXX.mrc
26
27 ### FileData
28 FILE_NAME=Input
29
30 #### Rules of the list created ####
31 # Defined at Sub
32
33 ##### Commands #####
34 # Defined at Sub basically
35 Initial::
36 #       $(RM) $(FILE_NAME).$(INI);
37 #       ln -s $(INPUT_PATH) $(FILE_NAME).$(INI);
38         mrcImageGaussDisc -o "$(FILE_NAME).$(INI)" 
39         mrcImageInfo -i "$(FILE_NAME).$(INI)" -x -o "$(FILE_NAME)-2d.$(IN_GNU)";
40         mrcImageMakeDump -i "$(FILE_NAME).$(INI)" -o "$(FILE_NAME)-3d.$(IN_GNU)";
41
42 Exe::
43         make Exe2D;
44         make Exe3D;
45
46 Exe2D::
47         @export IN_GNU_FILE_NAME=$(FILE_NAME)-2d; \
48         export OUT_GNU_FILE_NAME=$(FILE_NAME)-2d; \
49         export OUT_GNU=png; \
50         export VIEW_GNU_FILE_NAME=2D; \
51         make gnuplot2D;
52
53 Exe3D::
54         @export IN_GNU_FILE_NAME=$(FILE_NAME)-3d; \
55         export OUT_GNU_FILE_NAME=$(FILE_NAME)-3d; \
56         export OUT_GNU=png; \
57         export VIEW_GNU_FILE_NAME=3D; \
58         make gnuplot3D;
59
60 all::
61         make Initial;
62         make Exe;
63
64 ##### Commands(Input to Output) #####
65 # Defined at Sub