OSDN Git Service

Add: PIONE-PNML tutorail for if case statement.
[eos/tutorial.git] / TIPS / Makefile
index ab76271..911e293 100644 (file)
@@ -1,12 +1,12 @@
 #
-#      This is Makefile to create the Template Makefile for Small Tools, TIPS, and so on.
+#      This is Makefile to create the Template Makefile for SmallTools, TIPS, and so on.
 #
 
 #### Root Makefile ####
 MAKE_ROOT=makeTemplate
 
 #### INCLUDE ####
--include ${EOS_HOME}/tutorial/TIPS/Help/Makefile-lib
+-include ${EOS_HOME}/tutorial/TIPS/Help/Makefile/Makefile-lib
 
 #### Definition ####
 # Path of Template Files.
@@ -25,22 +25,23 @@ SOURCE="../../Template/Makefile/"
 
 CreateInitialMakefileDirectory::
        @mkdir $$TARGET;
-       @cd ./$$TARGET; \
+       @T_VERSION=$$(git tag | tail -1); \
+       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/"!!Version!!"/"$$T_VERSION"/g tmp > Makefile; \
        sed -e s/"!!Command!!"/"$$TARGET"/g Makefile-lib > tmp; \
-       cp tmp Makefile-lib; \
+       sed -e s/"!!Version!!"/"$$T_VERSION"/g 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 "This is Makefile to create the Template Makefile for SmallTools, TIPS, and so on."
        @echo
        @echo " (Command):"
        @echo " make XXXX:      create XXXX directory and Makefile."