generate-makefile.sh 525 B

1234567891011121314151617
  1. #!/bin/bash
  2. GENERATE_MAKEFILE_ERROR="cbp2make is not installed - please edit the Makefile manually or install cbp2make and execute this script if any files or dependencies have been added to or removed from the c::b project - get cbp2make at --> http://sourceforge.net/projects/cbp2make/"
  3. which cbp2make > /dev/null
  4. IS_CBP2MAKE_INSTALLED=$?
  5. if (($IS_CBP2MAKE_INSTALLED))
  6. then echo $GENERATE_MAKEFILE_ERROR
  7. else echo "generating makefile"
  8. cbp2make -in ./loopidity.cbp -out ./Makefile
  9. fi
  10. exit $IS_CBP2MAKE_INSTALLED