FreeCalypso > hg > fc-magnetite
comparison scripts/mk-component.sh @ 15:c8bdae60fcb1
changed the generation of *_version.c files to not break on make clean
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Tue, 27 Sep 2016 04:34:05 +0000 |
parents | 352f80da6813 |
children | c49c78d9bb5a |
comparison
equal
deleted
inserted
replaced
14:86e83045be37 | 15:c8bdae60fcb1 |
---|---|
34 # beginning of the Makefile | 34 # beginning of the Makefile |
35 echo "all: $LIBNAME.lib" > $BUILD_DIR/$LIBNAME/Makefile | 35 echo "all: $LIBNAME.lib" > $BUILD_DIR/$LIBNAME/Makefile |
36 echo >> $BUILD_DIR/$LIBNAME/Makefile | 36 echo >> $BUILD_DIR/$LIBNAME/Makefile |
37 | 37 |
38 # shell functions to be used in the recipes | 38 # shell functions to be used in the recipes |
39 | |
40 make_version() { | |
41 if [ $# != 1 ] | |
42 then | |
43 echo "Error: make_version takes 1 argument" 1>&2 | |
44 exit 1 | |
45 fi | |
46 echo "$1_version.c:" >> $BUILD_DIR/$LIBNAME/Makefile | |
47 echo " ../../scripts/make-version.sh $1 > $1_version.c" \ | |
48 >> $BUILD_DIR/$LIBNAME/Makefile | |
49 echo >> $BUILD_DIR/$LIBNAME/Makefile | |
50 } | |
39 | 51 |
40 cfile_plain() { | 52 cfile_plain() { |
41 if [ $# != 1 ] | 53 if [ $# != 1 ] |
42 then | 54 then |
43 echo "Error: cfile_plain takes 1 argument" 1>&2 | 55 echo "Error: cfile_plain takes 1 argument" 1>&2 |