kirancodes.me
To Proof Maintenance & Beyond!

SYMake: a build code analysis and refactoring tool for makefiles

Ahmed Tamrawi, Hoan Anh Nguyen, Hung Viet Nguyen, Tien N. Nguyen

Abstract

Software building is an important task during software development. However, program analysis support for build code is still limited, especially for build code written in a dynamic language such as Make. We introduce SYMake, a novel program analysis and refactoring tool for build code in Makefiles. SYMake is capable of detecting several types of code smells and errors such as cyclic dependencies, rule inclusion, duplicate prerequisites, recursive variable loops, etc. It also supports automatic build code refactoring, e.g. rule extraction/removal, target creation, target/variable renaming, prerequisite extraction, etc. In addition, SYMake provides the analysis on defined rules, targets, prerequisites, and associated information to help developers better understand build code in a Makefile and its included files.

BibTeX
@inproceedings{Tamrawi-al:ASE12,
  author    = {Ahmed Tamrawi and
               Hoan Anh Nguyen and
               Hung Viet Nguyen and
               Tien N. Nguyen},
  title     = {{SYMake:} a build code analysis and refactoring tool for makefiles},
  booktitle = {ASE},
  pages     = {366--369},
  publisher = {{ACM}},
  year      = {2012},
}

Related papers