Title :
SYMake: a build code analysis and refactoring tool for makefiles
Author :
Tamrawi, Ahmed ; Hoan Anh Nguyen ; Hung Viet Nguyen ; Nguyen, Tuan N.
Author_Institution :
Electr. & Comput. Eng. Dept., Iowa State Univ., Ames, IA, USA
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.
Keywords :
program diagnostics; software maintenance; Makefiles; SYMake; automatic build code refactoring; code analysis; code smells; cyclic dependencies; duplicate prerequisites; dynamic language; prerequisite extraction; program analysis; recursive variable loops; refactoring tool; rule extraction-removal; rule inclusion; software building; software development; target creation; target-variable renaming; Build Code Analysis; Code Smells; Maintenance; Refactoring;
Conference_Titel :
Automated Software Engineering (ASE), 2012 Proceedings of the 27th IEEE/ACM International Conference on
Print_ISBN :
978-1-4503-1204-2
DOI :
10.1145/2351676.2351749