Makefile 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #
  2. # Makefile to cleanup and create tags file
  3. #
  4. #
  5. rcfile=dummy_rc_filename
  6. dd=.
  7. help:
  8. @echo " "
  9. @echo " Usage:"
  10. @echo " make clean # remove temporary files (log, backup files)"
  11. @echo " make realclean # remove temporary files, and bin/*.pyc"
  12. @echo " make etags rcfile=.... # create TAGS file (emacs)"
  13. @echo " make ctags rcfile=.... # create TAGS file (vi, less)"
  14. @echo " make clen [dd=DIR] # check for F90 lines longer than 132 in DIR (default ${PWD})"
  15. @echo " # !requires ruby!"
  16. @echo " "
  17. realclean: clean-pycasso clean-pyc
  18. clean: clean-pycasso
  19. clean-pycasso:
  20. /bin/rm -f setup_tm5.[0-9]*.log
  21. /bin/rm -f *.~[0-9]~
  22. clean-pyc:
  23. \find . -name '*.pyc' -exec rm -f {} \;
  24. etags:
  25. @if [ ! -e $(rcfile) ]; then \
  26. echo "You must first specify rcfile=filename"; else \
  27. tools/util/tm5_etags -r $(rcfile) "${PWD}"; fi
  28. ctags:
  29. @if [ ! -e $(rcfile) ]; then \
  30. echo "You must first specify rcfile=filename"; else \
  31. tools/util/tm5_etags -v -r $(rcfile) "${PWD}"; fi
  32. clen:
  33. tools/util/find_long_lines.rb $(dd)