Smake params in Makefile fixed

master
Kolan Sh 11 years ago
parent dc638a9187
commit 8ce1445282
  1. 5
      smake.sh

@ -20,6 +20,7 @@ RULES_FILE=$SMAKE_DIR/rules.smk
# Debug
DEBUG=1
SMAKE_PARAMS=$@
# Parameters processing
TEMP=`getopt -o h:S:P:I:l:c:x:t: --long help:,sources:,package:,include:,libs:,cc:,cxx:,target: -- "$@"`
@ -73,7 +74,7 @@ echo "INCLUDES=$INCLUDES";
echo "LIBS=$REP_LIBS";
# ======= Help =======
echo "# smake.sh $@" > Makefile
echo "# Makefile generated by command: smake.sh $SMAKE_PARAMS" > Makefile
cat $HELP_FILE >> Makefile
echo >> Makefile
@ -280,7 +281,7 @@ for i in `seq 0 $((nfiles-1))`; do
echo -ne "\t" >> Makefile
fname=${fpath[$j]}
k=1
for d in $SOURCES ; do
for d in `echo $SOURCES | sed 's~\.~\\\.~g'` ; do
_fname=`echo ${fpath[$j]} | sed "s~^$d~\$\(SRC$k\)~"`
[ "$_fname" != "${fpath[$j]}" ] && fname=$_fname
let k++

Loading…
Cancel
Save