Help added to Makefile generated by smake.sh

This commit is contained in:
Kolan Sh 2011-07-08 11:29:44 +04:00
parent ec93c5c2ed
commit b79362732b
2 changed files with 15 additions and 1 deletions

View File

@ -0,0 +1,9 @@
# This file is generated with smake.sh.
# You can use this make file with instruction make to
# use one of build mode: debug, profile, develop, release.
# No need to call make clean if You make with other mode,
# because the Makefile containes rules for automatically clean.
# Some usage examples:
# CFLAGS="-march=core2 -mtune=core2" make
# LDFLAGS="-lexpat" make mode=profile
# Report bugs to <mecareful@gmail.com>

View File

@ -7,6 +7,7 @@ REP_LIBRARIES=
REP_TARGET=target REP_TARGET=target
SMAKE_DIR=~/dev/bash/smake/etc/smake SMAKE_DIR=~/dev/bash/smake/etc/smake
HELP_FILE=$SMAKE_DIR/help.smk
ENV_FILE=$SMAKE_DIR/env.smk ENV_FILE=$SMAKE_DIR/env.smk
BUILD_FILE=$SMAKE_DIR/build.smk BUILD_FILE=$SMAKE_DIR/build.smk
RULES_FILE=$SMAKE_DIR/rules.smk RULES_FILE=$SMAKE_DIR/rules.smk
@ -43,9 +44,13 @@ while true ; do
esac esac
done done
# ======= Help =======
cat $HELP_FILE > Makefile
echo >> Makefile
# ======= Environment ======= # ======= Environment =======
sed "s~REP_CC~$REP_CC~ ; s~REP_CXX~$REP_CXX~ ; \ sed "s~REP_CC~$REP_CC~ ; s~REP_CXX~$REP_CXX~ ; \
s~REP_LIBRARIES~$REP_LIBRARIES~ ; s~REP_TARGET~$REP_TARGET~" $ENV_FILE > Makefile s~REP_LIBRARIES~$REP_LIBRARIES~ ; s~REP_TARGET~$REP_TARGET~" $ENV_FILE >> Makefile
# INCLUDE0, INCLUDE1, INCLUDE2, ... # INCLUDE0, INCLUDE1, INCLUDE2, ...
REP_INCLUDE=`echo $REP_INCLUDE | sed "s~-I~~g"` REP_INCLUDE=`echo $REP_INCLUDE | sed "s~-I~~g"`