OSDN Git Service

Modify: Add the succeed message for Template. v2.0.2p0036
authorkinoshita-eos <kinoshita@yasunaga-lab.bio.kyutech.ac.jp>
Fri, 17 Oct 2014 04:16:25 +0000 (13:16 +0900)
committerkinoshita-eos <kinoshita@yasunaga-lab.bio.kyutech.ac.jp>
Fri, 17 Oct 2014 04:16:25 +0000 (13:16 +0900)
modified:   Small Tools/mrcImage/Makefile
Add: Template of TIPS.
new file:   TIPS/Makefile
new file:   TIPS/Template/Makefile/Makefile
new file:   TIPS/Template/Makefile/Makefile-lib

Small Tools/mrcImage/Makefile
TIPS/Makefile [new file with mode: 0644]
TIPS/Template/Makefile/Makefile [new file with mode: 0644]
TIPS/Template/Makefile/Makefile-lib [new file with mode: 0644]

index e6d28aa..94e4af3 100644 (file)
@@ -35,6 +35,7 @@ CreateInitialMakefileDirectory::
        sed -e s/"!!Command!!"/"$$TARGET"/g Makefile-lib > tmp; \
        cp tmp Makefile-lib; \
        rm tmp;
+       @echo succeed to create.
 
 help_makeTemplate::
        @echo
diff --git a/TIPS/Makefile b/TIPS/Makefile
new file mode 100644 (file)
index 0000000..ab76271
--- /dev/null
@@ -0,0 +1,49 @@
+#
+#      This is Makefile to create the Template Makefile for Small Tools, TIPS, and so on.
+#
+
+#### Root Makefile ####
+MAKE_ROOT=makeTemplate
+
+#### INCLUDE ####
+-include ${EOS_HOME}/tutorial/TIPS/Help/Makefile-lib
+
+#### Definition ####
+# Path of Template Files.
+SOURCE="../../Template/Makefile/"
+
+##### Commands #####
+.DEFAULT::
+       @CreateFlag=
+       @export TARGET=$@; \
+       if [ ! -z $$TARGET ] ; then \
+               CreateFlag=true; \
+       fi; \
+       if [ ! -z $$CreateFlag ] ; then \
+               make CreateInitialMakefileDirectory; \
+       fi
+
+CreateInitialMakefileDirectory::
+       @mkdir $$TARGET;
+       @cd ./$$TARGET; \
+       mkdir Makefile; \
+       cd ./Makefile; \
+       cp ${SOURCE}Makefile Makefile; \
+       cp ${SOURCE}Makefile-lib Makefile-lib; \
+       sed -e s/"!!Command!!"/"$$TARGET"/g Makefile > tmp; \
+       cp tmp Makefile; \
+       sed -e s/"!!Command!!"/"$$TARGET"/g Makefile-lib > tmp; \
+       cp tmp Makefile-lib; \
+       rm tmp;
+       @echo succeed to create.
+
+help_makeTemplate::
+       @echo
+       @echo "Makefile for Template"
+       @echo "This is Makefile to create the Template Makefile for Small Tools, TIPS, and so on."
+       @echo
+       @echo " (Command):"
+       @echo " make XXXX:      create XXXX directory and Makefile."
+       @echo "                 if exist the directory already, do not process."
+       @echo
+       
\ No newline at end of file
diff --git a/TIPS/Template/Makefile/Makefile b/TIPS/Template/Makefile/Makefile
new file mode 100644 (file)
index 0000000..69852f5
--- /dev/null
@@ -0,0 +1,34 @@
+#
+#      This is Main Makefile for !!Command!!.
+#
+
+#### Root Makefile ####
+MAKE_ROOT=!!Command!!
+
+#### Input extention ####
+INI=ini
+
+#### Suffixes rule ####
+# Defined at Sub
+
+#### INCLUDE ####
+-include ${EOS_HOME}/tutorial/TIPS/Help/Makefile-lib
+-include Makefile-lib
+
+#### Definition ####
+# Path of Input File
+# Basically, use a linked data from /SampleData.
+# INPUT_PATH=${EOS_HOME}/tutorial/SampleData/XXXX.mrc
+
+### FileData
+FILE_NAME=Input
+
+#### Rules of the list created ####
+# Defined at Sub
+
+##### Commands #####
+# Defined at Sub basically
+all::
+
+##### Commands(Input to Output) #####
+# Defined at Sub
diff --git a/TIPS/Template/Makefile/Makefile-lib b/TIPS/Template/Makefile/Makefile-lib
new file mode 100644 (file)
index 0000000..93a6e86
--- /dev/null
@@ -0,0 +1,33 @@
+#
+#      This is Sub Makefile for !!Command!!.
+#
+
+#### Input extention ####
+# Defined at Main
+
+#### Suffixes rule ####
+.SUFFIXES: 
+
+#### INCLUDE ####
+# Use TIPS File.
+# -include ${EOS_HOME}/tutorial/TIPS/XXXX/Makefile-lib
+
+#### Definition ####
+# Defined at Main
+
+#### Rules of the list created ####
+
+
+##### Commands #####
+help_!!Command!!::
+       @echo
+       @echo "!!Command!!"
+       @echo "This is Sub Makefile for !!Command!!."
+       @echo
+       @echo " (Command):"
+       @echo
+       @echo " (Setting Data):"
+       @echo
+
+##### Commands(Input to Output) #####
+