3 ms·
File deletions and renames are common problems with many revision control / build systems. Other than the nuclear option ("make clean"), another is to have a s
by dredmorbius 3y ago
File deletions and renames are common problems with many revision control / build systems.
Other than the nuclear option ("make clean"), another is to have a specific rename / remove make target, so:
make rm sourcefile
or
make mv sourcefile newsourcefile
... which will handle the deletion and renaming of both the original and generated targets.
In practice for even fairly large blog and online projects, a make clean / make all cycle is reasonably quick (seconds, perhaps minutes), and is often called for when revising templates or other elements of the site design. If you're operating at a scale where rebuild time is a concern, you probably want to be using an actual CMS (content management system) in which source is managed in a database and generated dynamically on client access.