46904b90e0ce83176156191c3d62589b6a661953 — octaspire 6 months ago 21b3dc6 v0.465.0
Add Makefile target for generating cscope database

* This can be invoked by issuing command:

  make cscope

  in the root directory of the development repository.
  The generated database(s) can be used directly
  with the command line cscope, or with GNU/Emacs using
  the xcscope package (or with vim using suitable
  configuration).

  cscope must be available in the system. In most systems
  it can be installed through the OS package manager. Also
  commands 'find' and 'greadlink' must be available. In some
  BSD systems the 'greadlink' program can be installed from
  the GNU coreutils package. In those systems the default
  'readlink' program is not the same as the GNU coreutils version.
M GNUmakefile => GNUmakefile +7 -1
@@ 146,7 146,7 @@ CHIPMUNK_LDFLAGS   := -lm
  endif
  
- .PHONY: oscheck development development-repl submodules-init submodules-pull git-clean clean codestyle cppcheck valgrind test coverage perf-linux major minor patch push tag
+ .PHONY: oscheck development development-repl submodules-init submodules-pull git-clean clean codestyle cppcheck valgrind test coverage perf-linux major minor patch push tag cscope
  
  all: oscheck submodulecheck development
  


@@ 423,6 423,12 @@ @etags -o $@ $(TAGS_C_FILES)
  	@etags -o $@ --append --language scheme $(TAGS_DERN_FILES)
  
+ cscope: cscope.files
+ 
+ cscope.files: $(TAGS_C_FILES)
+ 	@find . -type f -iname "*.[ch]" -print -exec greadlink -f {} \; > cscope.files
+ 	@cscope -R -b -q
+ 
  major:
  	@sh dev/etc/bump-version.sh major
  	@rm -f release/octaspire-dern-amalgamated.c      # This ensures that the version number is updated

M dev/include/octaspire/dern/octaspire_dern_config.h => dev/include/octaspire/dern/octaspire_dern_config.h +2 -2
@@ 18,8 18,8 @@ #define OCTASPIRE_DERN_CONFIG_H
  
  #define OCTASPIRE_DERN_CONFIG_VERSION_MAJOR "0"
- #define OCTASPIRE_DERN_CONFIG_VERSION_MINOR "464"
- #define OCTASPIRE_DERN_CONFIG_VERSION_PATCH "1"
+ #define OCTASPIRE_DERN_CONFIG_VERSION_MINOR "465"
+ #define OCTASPIRE_DERN_CONFIG_VERSION_PATCH "0"
  
  #define OCTASPIRE_DERN_CONFIG_VERSION_STR "Octaspire Dern version " \
      OCTASPIRE_DERN_CONFIG_VERSION_MAJOR "." \

M release/octaspire-dern-amalgamated.c => release/octaspire-dern-amalgamated.c +2 -2
@@ 26223,8 26223,8 @@ #define OCTASPIRE_DERN_CONFIG_H
  
  #define OCTASPIRE_DERN_CONFIG_VERSION_MAJOR "0"
- #define OCTASPIRE_DERN_CONFIG_VERSION_MINOR "464"
- #define OCTASPIRE_DERN_CONFIG_VERSION_PATCH "1"
+ #define OCTASPIRE_DERN_CONFIG_VERSION_MINOR "465"
+ #define OCTASPIRE_DERN_CONFIG_VERSION_PATCH "0"
  
  #define OCTASPIRE_DERN_CONFIG_VERSION_STR "Octaspire Dern version " \
      OCTASPIRE_DERN_CONFIG_VERSION_MAJOR "." \