#
#	This is Main Makefile for mrcImageRandomParticlesImageCreate.
#
#		Created by template v2.0.2p0065
#

#### Root Makefile ####
MAKE_ROOT=mrcImageRandomParticlesImageCreate
TOOLS_CLASS=mrcImage
TOOLS_COMMAND=$(MAKE_ROOT)
OBJECTS_GROUP=DataManip
OBJECTS_CLASS=mrcImage
OBJECTS_COMMAND=l$(MAKE_ROOT)

#### Input extention ####
INI=ini
IN=list
OUT=mrc

#### 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/Debugger/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

### OPTIONS
NX=512
NY=512
RND_SEED=54321

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

##### Commands #####
# Defined at Sub basically
# By make Initial, Create input data for this command.
Initial::
	make InitialData;

# By make Exe, Execute the sample of this command.
Exe::
	if [ ! -z "$(RND_SEED)" ] ; then \
		OPTION="$${OPTION} -seed $(RND_SEED)"; \
	fi; \
	if [ ! -z "$(NX)" -a ! -z "$(NY)" ] ; then \
		OPTION="$${OPTION} -N $(NX) $(NY)"; \
	fi; \
	mrcImageRandomParticlesImageCreate -i $(FILE_NAME).$(IN) -o $(FILE_NAME).$(OUT) $${OPTION};

# By make Final, Make visualize Output for this command.
Final::
	mrc2tiff -i $(FILE_NAME).$(OUT) -o $(FILE_NAME).tiff;

# By make all, Initial -> Exe -> Final.
all::
	make Initial;
	make Exe;
	make Final;

help_mrcImageRandomParticlesImageCreate::
	@echo
	@echo "Makefile for mrcImageRandomParticlesImageCreate"
	@echo "This is Main Makefile for mrcImageRandomParticlesImageCreate."
	@echo
	@echo "	(Command):"
	@echo "		Initial:		Create input data for this command."
	@echo "			(Setting Data):"
	@echo "			INI:		input extention for Initial"
	@echo
	@echo "		Exe:			Execute the sample of this command."
	@echo "			(Setting Data):"
	@echo "			IN:			input list extention"
	@echo "			OUT:		output extention"
	@echo "			NX:			output size x"
	@echo "			NY:			output size y"
	@echo "			RND_SEED:	seed of random number"
	@echo
	@echo "		Final:			Make visualize Output for this command."
	@echo
	@echo "		all:			Initial -> Exe -> Final."
	@echo
	@echo "	(Setting Data):"
	@echo "		FILE_NAME:		filename of input"

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