• R/O
  • HTTP
  • SSH
  • HTTPS

tutorial: Commit

This repository is for tutorials of Eos.


Commit MetaInfo

Revision3aa6c544cceb350ac068467eb435133990be4e5c (tree)
Time2014-10-17 13:16:25
Authorkinoshita-eos <kinoshita@yasu...>
Commiterkinoshita-eos

Log Message

Modify: Add the succeed message for Template.
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

Change Summary

Incremental Difference

--- a/Small Tools/mrcImage/Makefile
+++ b/Small Tools/mrcImage/Makefile
@@ -35,6 +35,7 @@ CreateInitialMakefileDirectory::
3535 sed -e s/"!!Command!!"/"$$TARGET"/g Makefile-lib > tmp; \
3636 cp tmp Makefile-lib; \
3737 rm tmp;
38+ @echo succeed to create.
3839
3940 help_makeTemplate::
4041 @echo
--- /dev/null
+++ b/TIPS/Makefile
@@ -0,0 +1,49 @@
1+#
2+# This is Makefile to create the Template Makefile for Small Tools, TIPS, and so on.
3+#
4+
5+#### Root Makefile ####
6+MAKE_ROOT=makeTemplate
7+
8+#### INCLUDE ####
9+-include ${EOS_HOME}/tutorial/TIPS/Help/Makefile-lib
10+
11+#### Definition ####
12+# Path of Template Files.
13+SOURCE="../../Template/Makefile/"
14+
15+##### Commands #####
16+.DEFAULT::
17+ @CreateFlag=
18+ @export TARGET=$@; \
19+ if [ ! -z $$TARGET ] ; then \
20+ CreateFlag=true; \
21+ fi; \
22+ if [ ! -z $$CreateFlag ] ; then \
23+ make CreateInitialMakefileDirectory; \
24+ fi
25+
26+CreateInitialMakefileDirectory::
27+ @mkdir $$TARGET;
28+ @cd ./$$TARGET; \
29+ mkdir Makefile; \
30+ cd ./Makefile; \
31+ cp ${SOURCE}Makefile Makefile; \
32+ cp ${SOURCE}Makefile-lib Makefile-lib; \
33+ sed -e s/"!!Command!!"/"$$TARGET"/g Makefile > tmp; \
34+ cp tmp Makefile; \
35+ sed -e s/"!!Command!!"/"$$TARGET"/g Makefile-lib > tmp; \
36+ cp tmp Makefile-lib; \
37+ rm tmp;
38+ @echo succeed to create.
39+
40+help_makeTemplate::
41+ @echo
42+ @echo "Makefile for Template"
43+ @echo "This is Makefile to create the Template Makefile for Small Tools, TIPS, and so on."
44+ @echo
45+ @echo " (Command):"
46+ @echo " make XXXX: create XXXX directory and Makefile."
47+ @echo " if exist the directory already, do not process."
48+ @echo
49+
\ No newline at end of file
--- /dev/null
+++ b/TIPS/Template/Makefile/Makefile
@@ -0,0 +1,34 @@
1+#
2+# This is Main Makefile for !!Command!!.
3+#
4+
5+#### Root Makefile ####
6+MAKE_ROOT=!!Command!!
7+
8+#### Input extention ####
9+INI=ini
10+
11+#### Suffixes rule ####
12+# Defined at Sub
13+
14+#### INCLUDE ####
15+-include ${EOS_HOME}/tutorial/TIPS/Help/Makefile-lib
16+-include Makefile-lib
17+
18+#### Definition ####
19+# Path of Input File
20+# Basically, use a linked data from /SampleData.
21+# INPUT_PATH=${EOS_HOME}/tutorial/SampleData/XXXX.mrc
22+
23+### FileData
24+FILE_NAME=Input
25+
26+#### Rules of the list created ####
27+# Defined at Sub
28+
29+##### Commands #####
30+# Defined at Sub basically
31+all::
32+
33+##### Commands(Input to Output) #####
34+# Defined at Sub
--- /dev/null
+++ b/TIPS/Template/Makefile/Makefile-lib
@@ -0,0 +1,33 @@
1+#
2+# This is Sub Makefile for !!Command!!.
3+#
4+
5+#### Input extention ####
6+# Defined at Main
7+
8+#### Suffixes rule ####
9+.SUFFIXES:
10+
11+#### INCLUDE ####
12+# Use TIPS File.
13+# -include ${EOS_HOME}/tutorial/TIPS/XXXX/Makefile-lib
14+
15+#### Definition ####
16+# Defined at Main
17+
18+#### Rules of the list created ####
19+
20+
21+##### Commands #####
22+help_!!Command!!::
23+ @echo
24+ @echo "!!Command!!"
25+ @echo "This is Sub Makefile for !!Command!!."
26+ @echo
27+ @echo " (Command):"
28+ @echo
29+ @echo " (Setting Data):"
30+ @echo
31+
32+##### Commands(Input to Output) #####
33+
Show on old repository browser