<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>PHPDeveloper.org</title>
    <link>http://www.phpdeveloper.org</link>
    <description>Up-to-the Minute PHP News, views and community</description>
    <language>en-us</language>
    <pubDate>Wed, 19 Jun 2013 09:16:20 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Nefarious Designs Blog: Website builds using Make]]></title>
      <guid>http://www.phpdeveloper.org/news/14096</guid>
      <link>http://www.phpdeveloper.org/news/14096</link>
      <description><![CDATA[<p>
New from the Nefarious Designs blog today is a comprehensive post on <a href="http://nefariousdesigns.co.uk/archive/2010/02/website-builds-using-make">using make to create automated website builds</a>. He looks specifically at how to manage and build the Javascript and CSS portions of a site (but parts of it could be applied to just about any files you might want to automate).
</p>
<blockquote>
In the interests of improving quality in production, of eliminating repetitive tasks, and of general development time saving, it's often a good idea to automate some of the website build process. What do I mean by "website build process"? Put simply, the task of preparation and publication to production (your live, open-to-the-internet environment), from a development environment. [...] I'm going to look at how you can automate the CSS and JavaScript part of the build process using Make, a handy little program that is installed with the standard build tools on most *nix based systems.
</blockquote>
<p>
He shows how to automate the compression of multiple Javascript/CSS files into a single one (to reduce the number of HTTP requests required) by figuring out what's needed for the page. He shows how to build the Makefile with a few simple rules that concatenate the files together, run a minification tool on them and clean up any onld versions that might be out there. The final step is automatically updating the HTML to include the newly created Javascript/CSS file without having to do each one manually.
</p>
<p>
Examples of what you'll need to have in your Makefile are all included as well as the commands to issue to get it all working.
</p>]]></description>
      <pubDate>Fri, 26 Feb 2010 10:09:05 -0600</pubDate>
    </item>
  </channel>
</rss>
