# HG changeset patch # User Mychaela Falconia # Date 1474950845 0 # Node ID c8bdae60fcb1bdcf0729856927882c82cfe11825 # Parent 86e83045be373bfccbfabffdf76b31dae94686a0 changed the generation of *_version.c files to not break on make clean diff -r 86e83045be37 -r c8bdae60fcb1 components/aci-classic --- a/components/aci-classic Tue Sep 27 04:23:46 2016 +0000 +++ b/components/aci-classic Tue Sep 27 04:34:05 2016 +0000 @@ -1,10 +1,9 @@ # Building the classic TCS211 version of aci.lib -scripts/make-version.sh aci > $BUILD_DIR/$LIBNAME/aci_version.c - CFLAGS="-me -mt -o -pw2 -x -mw" CPPFLAGS= +make_version aci cfile_plain aci_version.c # Defines diff -r 86e83045be37 -r c8bdae60fcb1 scripts/mk-component.sh --- a/scripts/mk-component.sh Tue Sep 27 04:23:46 2016 +0000 +++ b/scripts/mk-component.sh Tue Sep 27 04:34:05 2016 +0000 @@ -37,6 +37,18 @@ # shell functions to be used in the recipes +make_version() { + if [ $# != 1 ] + then + echo "Error: make_version takes 1 argument" 1>&2 + exit 1 + fi + echo "$1_version.c:" >> $BUILD_DIR/$LIBNAME/Makefile + echo " ../../scripts/make-version.sh $1 > $1_version.c" \ + >> $BUILD_DIR/$LIBNAME/Makefile + echo >> $BUILD_DIR/$LIBNAME/Makefile +} + cfile_plain() { if [ $# != 1 ] then