#
-# 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.
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."