#
#	This is Main Makefile for NoiseAdd.
#

#### Root Makefile ####
MAKE_ROOT=NoiseAdd

#### Input extention ####
INI=ini

#### Suffixes rule ####
# Defined at Sub

#### INCLUDE ####
# Help-include-file must always be put on top.
-include ${EOS_HOME}/tutorial/TIPS/Help/Makefile/Makefile-lib
-include ${EOS_HOME}/tutorial/TIPS/Projection3DImage/Makefile/Makefile-lib
-include Makefile-lib

#### Definition ####
# Path of Input File
# Basically, use a linked data from /SampleData.
INPUT_PATH=${EOS_HOME}/tutorial/SampleData/1VOM.mrc

### FileData
FILE_NAME=Input

### For option of command
NOISE_SD=
NOISE_SN=
NOISE_NS=
NOISE_H_TRES=
NOISE_L_TRES=

#### Rules of the list created ####
# Defined at Sub

##### Commands #####
# Defined at Sub basically
Initial::
	$(RM) $(FILE_NAME).$(INI);
	ln -s $(INPUT_PATH) $(FILE_NAME).$(INI);

Exe::
	export NOISE_IN_FILE_NAME=$(FILE_NAME); \
	export IN_NOISE=$(INI); \
	make NoiseAdd;

Final::
	@export PRJ_FILE_NAME=$(FILE_NAME); \
	export IN_PRJ=$(INI); \
	export PRJ=$$IN_PRJ; \
	export OUT_PRJ="$$IN_PRJ".tiff; \
	make Projection3DImage; \
	export IN_PRJ=$(INI)back; \
	export PRJ=$$IN_PRJ; \
	export OUT_PRJ="$$IN_PRJ".tiff; \
	make Projection3DImage;

all::
	make Initial;
	make Exe;
	make Final;

##### Commands(Input to Output) #####
# Defined at Sub
