# # Makefile to cleanup and create tags file # # rcfile=dummy_rc_filename dd=. help: @echo " " @echo " Usage:" @echo " make clean # remove temporary files (log, backup files)" @echo " make realclean # remove temporary files, and bin/*.pyc" @echo " make etags rcfile=.... # create TAGS file (emacs)" @echo " make ctags rcfile=.... # create TAGS file (vi, less)" @echo " make clen [dd=DIR] # check for F90 lines longer than 132 in DIR (default ${PWD})" @echo " # !requires ruby!" @echo " " realclean: clean-pycasso clean-pyc clean: clean-pycasso clean-pycasso: /bin/rm -f setup_tm5.[0-9]*.log /bin/rm -f *.~[0-9]~ clean-pyc: \find . -name '*.pyc' -exec rm -f {} \; etags: @if [ ! -e $(rcfile) ]; then \ echo "You must first specify rcfile=filename"; else \ tools/util/tm5_etags -r $(rcfile) "${PWD}"; fi ctags: @if [ ! -e $(rcfile) ]; then \ echo "You must first specify rcfile=filename"; else \ tools/util/tm5_etags -v -r $(rcfile) "${PWD}"; fi clen: tools/util/find_long_lines.rb $(dd)